diff options
Diffstat (limited to 'c/src')
-rw-r--r-- | c/src/tests/itrontests/itrontask04/init.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/c/src/tests/itrontests/itrontask04/init.c b/c/src/tests/itrontests/itrontask04/init.c index 1adc36cf67..5b83347537 100644 --- a/c/src/tests/itrontests/itrontask04/init.c +++ b/c/src/tests/itrontests/itrontask04/init.c @@ -51,25 +51,30 @@ void ITRON_Init( void ) puts("INIT - dis_dsp while starting tasks"); status = dis_dsp( ); - directive_failed( status, "dis_dsp from ITRON_Init" ); + + /* dispatching disabled */ + + directive_failed_with_level( status, "dis_dsp from ITRON_Init", 1 ); status = sta_tsk( TA1_ID, 0 ); - directive_failed( status, "sta_tsk of TA1" ); + directive_failed_with_level( status, "sta_tsk of TA1", 1 ); status = sta_tsk( TA2_ID, 0 ); - directive_failed( status, "sta_tsk of TA2" ); + directive_failed_with_level( status, "sta_tsk of TA2", 1 ); status = sta_tsk( TA3_ID, 0 ); - directive_failed( status, "sta_tsk of TA3" ); + directive_failed_with_level( status, "sta_tsk of TA3", 1 ); puts( "INIT - suspending TA2 3 times" ); status = sus_tsk( TA2_ID ); - directive_failed( status, "sus_tsk of TA2" ); + directive_failed_with_level( status, "sus_tsk of TA2", 1 ); status = sus_tsk( TA2_ID ); - directive_failed( status, "sus_tsk of TA2" ); + directive_failed_with_level( status, "sus_tsk of TA2", 1 ); status = sus_tsk( TA2_ID ); - directive_failed( status, "sus_tsk of TA2" ); + directive_failed_with_level( status, "sus_tsk of TA2", 1 ); puts("INIT - ena_dsp while starting tasks"); status = ena_dsp( ); + /* dispatching enabled again */ + puts( "INIT - suspending TA1 3 times" ); status = sus_tsk( TA1_ID ); directive_failed( status, "sus_tsk of TA2" ); |