FreeRTOS/Demo/Safer_Interrupts_M33F_NXP_LPC55S69_MCUXpresso/NXP_Code/drivers/fsl_pint.c
/*!
 * brief	enable callback by pin index.

 * This function  enables callback by pin index instead of enabling all pins.
 *
 * param base Base address of the peripheral.
 * param pinIdx pin index.
 *
 * retval None.
 */
brief        enable callback by pin index.
This function  enables callback by pin index instead of enabling all pins.

param base Base address of the peripheral.
param pinIdx pin index.

retval None.
brief enable callback by pin index . This function enables callback by pin index instead of enabling all pins . param base Base address of the peripheral . param pinIdx pin index . retval None .
void PINT_EnableCallbackByIndex(PINT_Type *base, pint_pin_int_t pintIdx)
{
    assert(base != NULL);
    PINT_PinInterruptClrStatus(base, (pint_pin_int_t)pintIdx);
#if (defined(FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS) && FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS)
    if (base == SECPINT)
    {
        pintIdx =
            (pint_pin_int_t)(uint32_t)((uint32_t)pintIdx + (uint32_t)FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS);
    }
#endif 
    NVIC_ClearPendingIRQ(s_pintIRQ[pintIdx]);
    (void)EnableIRQ(s_pintIRQ[pintIdx]);
}
void PINT_EnableCallbackByIndex ( PINT_Type * base , pint_pin_int_t pintIdx ) { assert ( base != NULL ) ; PINT_PinInterruptClrStatus ( base , ( pint_pin_int_t ) pintIdx ) ; #if ( defined ( FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS ) && FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS ) if ( base == SECPINT ) { pintIdx = ( pint_pin_int_t ) ( uint32_t ) ( ( uint32_t ) pintIdx + ( uint32_t ) FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS ) ; } #endif NVIC_ClearPendingIRQ ( s_pintIRQ [ pintIdx ] ) ; ( void ) EnableIRQ ( s_pintIRQ [ pintIdx ] ) ; }
brief        enable callback by pin index.
brief enable callback by pin index .
/* Get the right security pint irq index in array */ /* FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS */