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,
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,
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);