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

 * This function disables the interrupt for the selected PINT peripheral. Although the pins are still
 * being monitored but the callback function is not called.
 *
 * param base Base address of the peripheral.
 *
 * retval None.
 */
brief        Disable callback.
This function disables the interrupt for the selected PINT peripheral. Although the pins are still
being monitored but the callback function is not called.

param base Base address of the peripheral.

retval None.
brief Disable callback . This function disables the interrupt for the selected PINT peripheral . Although the pins are still being monitored but the callback function is not called . param base Base address of the peripheral . retval None .
void PINT_DisableCallback(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++)
        {
            (void)DisableIRQ(s_pintIRQ[i]);
            PINT_PinInterruptClrStatus(base, (pint_pin_int_t)i);
            NVIC_ClearPendingIRQ(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++)
        {
            (void)DisableIRQ(s_pintIRQ[i + (uint32_t)FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS]);
            PINT_PinInterruptClrStatus(base, (pint_pin_int_t)i);
            NVIC_ClearPendingIRQ(s_pintIRQ[i + (uint32_t)FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS]);
        }
#endif 
    }
}
void PINT_DisableCallback ( 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 ++ ) { ( void ) DisableIRQ ( s_pintIRQ [ i ] ) ; PINT_PinInterruptClrStatus ( base , ( pint_pin_int_t ) i ) ; NVIC_ClearPendingIRQ ( 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 ++ ) { ( void ) DisableIRQ ( s_pintIRQ [ i + ( uint32_t ) FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS ] ) ; PINT_PinInterruptClrStatus ( base , ( pint_pin_int_t ) i ) ; NVIC_ClearPendingIRQ ( s_pintIRQ [ i + ( uint32_t ) FSL_FEATURE_PINT_NUMBER_OF_CONNECTED_OUTPUTS ] ) ; } #endif } }
brief        Disable callback.
brief Disable callback .
/* FSL_FEATURE_SECPINT_NUMBER_OF_CONNECTED_OUTPUTS */