X-Git-Url: http://rtime.felk.cvut.cz/gitweb/rtems-devel.git/blobdiff_plain/396ae37a0235fcc0f5a2eba1448ad360d635e6ec..6e225be470a6688d94cf4915bc47b3c6877a25dd:/rtems-omk-template/appnet/task_1.c diff --git a/rtems-omk-template/appnet/task_1.c b/rtems-omk-template/appnet/task_1.c new file mode 100644 index 0000000..06b2c6b --- /dev/null +++ b/rtems-omk-template/appnet/task_1.c @@ -0,0 +1,28 @@ +#include +#include "system.h" +#include "app_def.h" +#include +#include +#include +#include +#include +#include + + +rtems_task Task_1( + rtems_task_argument argument +) +{ + int loops = 2; + rtems_status_code status; + printf("*** Starting up Task_1 ***\n"); + + while(loops--){ + printf("Task_1 woken\n"); + status = rtems_task_wake_after( TICKS_PER_SECOND ); + check_rtems_status( status, 0, "rtems_task_wake_after" ); + } + printf("*** Suspend Task_1 ***\n"); + rtems_task_suspend( RTEMS_SELF ); +} +