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

 * This function disables callback by pin index instead of disabling all pins.
 *
 * param base Base address of the peripheral.
 * param pinIdx pin index.
 *
 * retval None.
 */
brief disable callback by pin index.
This function disables callback by pin index instead of disabling all pins.

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

retval None.
brief disable callback by pin index . This function disables callback by pin index instead of disabling all pins . param base Base address of the peripheral . param pinIdx pin index . retval None .
void PINT_DisableCallbackByIndex(PINT_Type *base, pint_pin_int_t pintIdx)
{
    assert(base != NULL);
    if (base == PINT)
    {
        (void)DisableIRQ(s_pintIRQ[pintIdx]);
        PINT_PinInterruptClrStatus(base, (pint_pin_int_t)pintIdx);
        NVIC_ClearPendingIRQ(s_pintIRQ[pintIdx]);
    }
    else
    {
#if (defined(FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS) && FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS)
        (void)DisableIRQ(s_pintIRQ[(uint32_t)pintIdx + (uint32_t)FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS]);
        PINT_PinInterruptClrStatus(base, (pint_pin_int_t)pintIdx);
        NVIC_ClearPendingIRQ(s_pintIRQ[(uint32_t)pintIdx + (uint32_t)FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS]);
#endif
    }
}
void PINT_DisableCallbackByIndex ( PINT_Type * base , pint_pin_int_t pintIdx ) { assert ( base != NULL ) ; if ( base == PINT ) { ( void ) DisableIRQ ( s_pintIRQ [ pintIdx ] ) ; PINT_PinInterruptClrStatus ( base , ( pint_pin_int_t ) pintIdx ) ; NVIC_ClearPendingIRQ ( s_pintIRQ [ pintIdx ] ) ; } else { #if ( defined ( FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS ) && FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS ) ( void ) DisableIRQ ( s_pintIRQ [ ( uint32_t ) pintIdx + ( uint32_t ) FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS ] ) ; PINT_PinInterruptClrStatus ( base , ( pint_pin_int_t ) pintIdx ) ; NVIC_ClearPendingIRQ ( s_pintIRQ [ ( uint32_t ) pintIdx + ( uint32_t ) FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS ] ) ; #endif } }
brief disable callback by pin index.
brief disable callback by pin index .