]> rtime.felk.cvut.cz Git - rtems-pluggable-edf.git/blobdiff - rtems-omk-template/appfoo/init.c
EDF pluggable scheduler running!
[rtems-pluggable-edf.git] / rtems-omk-template / appfoo / init.c
index ed6ab84b61ec58efeabe1288350da83638a546be..76cbc2e87768f5878436e383f921cb3d95f6a613 100644 (file)
@@ -79,10 +79,10 @@ rtems_task Init(
   printf( "Starting application " SW_VER_ID " v "
           BUILD_VERSION_STRING(SW_VER_MAJOR,SW_VER_MINOR,SW_VER_PATCH)
          "\n" );
-
+  
+// Task 1 ==============================================  
   Task_1_name = rtems_build_name( 'T', 'S', 'K', '1' );
-  Task_2_name = rtems_build_name( 'T', 'S', 'K', '2' );
-    
+
   status = rtems_task_create(
      Task_1_name,
      TASK_1_PRIORITY,
@@ -91,11 +91,14 @@ rtems_task Init(
      RTEMS_DEFAULT_ATTRIBUTES,
      &Task_1_id
   );
-  
-  
   check_rtems_status(status, 0, "rtems_task_create of Task_1");
+  status = rtems_task_start( Task_1_id, Task_1, 0 );
+  check_rtems_status(status, 0, "rtems_task_start of Task_1\n");
 
   
+// Task 2 ==============================================  
+  Task_2_name = rtems_build_name( 'T', 'S', 'K', '2' );
+  
   status = rtems_task_create(
      Task_2_name,
      TASK_2_PRIORITY,
@@ -107,13 +110,12 @@ rtems_task Init(
   
   check_rtems_status(status, 0, "rtems_task_create of Task_2");
 
-  status = rtems_task_start( Task_1_id, Task_1, 0 );
-  check_rtems_status(status, 0, "rtems_task_start of Task_1\n");
 
   status = rtems_task_start( Task_2_id, Task_2, 0 );
   check_rtems_status(status, 0, "rtems_task_start of Task_2\n");
 
-
+//  ====================================================
+  
   rtems_shell_init("SHLL",RTEMS_MINIMUM_STACK_SIZE+0x1000,
               SHELL_TASK_PRIORITY,"/dev/console",1,0, NULL);