]> rtime.felk.cvut.cz Git - rtems-pluggable-edf.git/blob - rtems-omk-template/appfoo/task_2.c
Task 2 added and pluggable EDF scheduler base for RTEMS added.
[rtems-pluggable-edf.git] / rtems-omk-template / appfoo / task_2.c
1 #include <system_def.h>
2 #include "system.h"
3 #include "app_def.h"
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <rtems/untar.h>
7 #include <rtems/error.h>
8 #include <rtems/mw_uid.h>
9 #include <errno.h>
10
11
12 rtems_task Task_2(
13   rtems_task_argument argument
14 )
15 {
16   int i;
17   int s;
18   rtems_status_code status;
19   printf("*** Starting up Task_2 ***\n");
20
21   while(1){
22     printf("Task_2 woken and calculating\n");
23     for (i=0; i<10000; i++) {
24       s = i + i;
25     }
26     status = rtems_task_wake_after( TICKS_PER_SECOND*2 );
27     check_rtems_status( status, 0, "rtems_task_wake_after" );
28   }
29 }
30