void vPortEnableInterrupt( uint8_t ucInterruptID ) { int32_t lReturn; /* An API function is provided to enable an interrupt in the interrupt controller because the interrupt controller instance variable is private to this file. */ lReturn = prvEnsureInterruptControllerIsInitialised(); if( lReturn == pdPASS ) { XIntc_Enable( &xInterruptControllerInstance, ucInterruptID ); } configASSERT( lReturn ); }
void vPortDisableInterrupt( unsigned char ucInterruptID ) { long lReturn; /* An API function is provided to disable an interrupt in the interrupt controller because the interrupt controller instance variable is private to this file. */ lReturn = prvEnsureInterruptControllerIsInitialised(); if( lReturn == pdPASS ) { XIntc_Disable( &xInterruptControllerInstance, ucInterruptID ); } configASSERT( lReturn ); }
BaseType_t xPortInstallInterruptHandler( uint8_t ucInterruptID, XInterruptHandler pxHandler, void *pvCallBackRef ) { int32_t lReturn; /* An API function is provided to install an interrupt handler because the interrupt controller instance variable is private to this file. */ lReturn = prvEnsureInterruptControllerIsInitialised(); if( lReturn == pdPASS ) { lReturn = XIntc_Connect( &xInterruptControllerInstance, ucInterruptID, pxHandler, pvCallBackRef ); } if( lReturn == XST_SUCCESS ) { lReturn = pdPASS; } configASSERT( lReturn == pdPASS ); return lReturn; }