]> rtime.felk.cvut.cz Git - rtems-devel.git/blob - rtems-omk-template/appnet/task_1.c
Adapt application limits configuration to work with actual RTEMS 4.11 build.
[rtems-devel.git] / rtems-omk-template / appnet / task_1.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_1(
13   rtems_task_argument argument
14 )
15 {
16   int loops = 2;
17   rtems_status_code status;
18   printf("*** Starting up Task_1 ***\n");
19
20   while(loops--){
21     printf("Task_1 woken\n");
22     status = rtems_task_wake_after(rtems_clock_get_ticks_per_second());
23     check_rtems_status( status, 0, "rtems_task_wake_after" );
24   }
25   printf("*** Suspend Task_1 ***\n");
26   rtems_task_suspend( RTEMS_SELF );
27 }
28