Fixed verificaiton checks to call correct macro if dispatch is disabled.

This commit is contained in:
Jennifer Averett
1999-11-15 21:28:21 +00:00
parent 06380cfeac
commit e672263c39
2 changed files with 24 additions and 14 deletions

View File

@@ -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" );

View File

@@ -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" );