rtems_task Init( rtems_task_argument argument ) { rtems_id id; rtems_status_code status; benchmark_timer_disable_subtracting_average_overhead( TRUE ); Print_Warning(); TEST_BEGIN(); status = rtems_task_create( rtems_build_name( 'T', 'A', '1', ' ' ), RTEMS_MAXIMUM_PRIORITY - 1, RTEMS_MINIMUM_STACK_SIZE, RTEMS_DEFAULT_MODES, RTEMS_DEFAULT_ATTRIBUTES, &id ); directive_failed( status, "rtems_task_create of TA1" ); status = rtems_task_start( id, Task_1, 0 ); directive_failed( status, "rtems_task_start of TA1" ); status = rtems_task_delete( RTEMS_SELF ); directive_failed( status, "rtems_task_delete of RTEMS_SELF" ); }
rtems_task Init( rtems_task_argument argument ) { rtems_id id; rtems_status_code status; /* * Tell the Timer Driver what we are doing */ benchmark_timer_disable_subtracting_average_overhead( 1 ); Print_Warning(); puts( "\n\n*** TIME CHECKER ***" ); Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' ), status = rtems_task_create( 1, 5, RTEMS_MINIMUM_STACK_SIZE, RTEMS_DEFAULT_MODES, RTEMS_DEFAULT_ATTRIBUTES, &id ); directive_failed( status, "rtems_task_create of TA1" ); status = rtems_task_start( id, Task_1, 0 ); directive_failed( status, "rtems_task_start of TA1" ); status = rtems_task_delete( RTEMS_SELF ); directive_failed( status, "rtems_task_delete of RTEMS_SELF" ); }