diff --git a/portable/GCC/MicroBlazeV9/port.c b/portable/GCC/MicroBlazeV9/port.c index 5f0e2616d..7c605e003 100644 --- a/portable/GCC/MicroBlazeV9/port.c +++ b/portable/GCC/MicroBlazeV9/port.c @@ -327,7 +327,7 @@ int32_t lReturn; portEXIT_CRITICAL(); } - configASSERT( lReturn ); + configASSERT( lReturn == pdPASS ); } /*-----------------------------------------------------------*/ @@ -345,7 +345,7 @@ int32_t lReturn; XIntc_Disable( &xInterruptControllerInstance, ucInterruptID ); } - configASSERT( lReturn ); + configASSERT( lReturn == pdPASS ); } /*-----------------------------------------------------------*/ @@ -374,6 +374,24 @@ int32_t lReturn; } /*-----------------------------------------------------------*/ +void vPortRemoveInterruptHandler( uint8_t ucInterruptID ) +{ +int32_t lReturn; + + /* An API function is provided to remove an interrupt handler because the + interrupt controller instance variable is private to this file. */ + + lReturn = prvEnsureInterruptControllerIsInitialised(); + + if( lReturn == pdPASS ) + { + XIntc_Disconnect( &xInterruptControllerInstance, ucInterruptID ); + } + + configASSERT( lReturn == pdPASS ); +} +/*-----------------------------------------------------------*/ + static int32_t prvEnsureInterruptControllerIsInitialised( void ) { static int32_t lInterruptControllerInitialised = pdFALSE;