FreeRTOS/Demo/Safer_Interrupts_M33F_NXP_LPC55S69_MCUXpresso/NXP_Code/drivers/fsl_pint.c
/*!
 * brief	Enable callback.

 * This function enables the interrupt for the selected PINT peripheral. Although the pin(s) are monitored
 * as soon as they are enabled, the callback function is not enabled until this function is called.
 *
 * param base Base address of the PINT peripheral.
 *
 * retval None.
 */
brief        Enable callback.
This function enables the interrupt for the selected PINT peripheral. Although the pin(s) are monitored
as soon as they are enabled, the callback function is not enabled until this function is called.

param base Base address of the PINT peripheral.

retval None.
brief Enable callback . This function enables the interrupt for the selected PINT peripheral . Although the pin ( s ) are monitored as soon as they are enabled the callback function is not enabled until this function is called . param base Base address of the PINT peripheral . retval None .
void PINT_EnableCallback(PINT_Type *base)
{
    uint32_t i;
    assert(base != NULL);
    if (base == PINT)
    {
        for (i = 0; i < (uint32_t)FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS; i++)
        {
            PINT_PinInterruptClrStatus(base, (pint_pin_int_t)i);
            NVIC_ClearPendingIRQ(s_pintIRQ[i]);
            (void)EnableIRQ(s_pintIRQ[i]);
        }
    }
    else
    {
#if (defined(FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS) && FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS)
        for (i = 0; i < (uint32_t)FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS; i++)
        {
            PINT_PinInterruptClrStatus(base, (pint_pin_int_t)i);
            NVIC_ClearPendingIRQ(s_pintIRQ[i + (uint32_t)FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS]);
            (void)EnableIRQ(s_pintIRQ[i + (uint32_t)FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS]);
        }
#endif 
    }
}
void PINT_EnableCallback ( PINT_Type * base ) { uint32_t i ; assert ( base != NULL ) ; if ( base == PINT ) { for ( i = 0 ; i < ( uint32_t ) FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS ; i ++ ) { PINT_PinInterruptClrStatus ( base , ( pint_pin_int_t ) i ) ; NVIC_ClearPendingIRQ ( s_pintIRQ [ i ] ) ; ( void ) EnableIRQ ( s_pintIRQ [ i ] ) ; } } else { #if ( defined ( FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS ) && FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS ) for ( i = 0 ; i < ( uint32_t ) FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS ; i ++ ) { PINT_PinInterruptClrStatus ( base , ( pint_pin_int_t ) i ) ; NVIC_ClearPendingIRQ ( s_pintIRQ [ i + ( uint32_t ) FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS ] ) ; ( void ) EnableIRQ ( s_pintIRQ [ i + ( uint32_t ) FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS ] ) ; } #endif } }
brief        Enable callback.
brief Enable callback .
/* FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS */