smart_lock_cm33_core1/mcmgr/mcmgr_internal_core_api_lpc55s69.c
/*!
 * @brief ISR handler
 *
 * This function is called when data from Mailbox is received
 */
@brief ISR handler
This function is called when data from Mailbox is received
@brief ISR handler This function is called when data from Mailbox is received
void MAILBOX_IRQHandler(void)
{
#if defined(FSL_FEATURE_MAILBOX_SIDE_A)
    mailbox_cpu_id_t cpu_id = kMAILBOX_CM33_Core0;
#else
    mailbox_cpu_id_t cpu_id = kMAILBOX_CM33_Core1;
#endif
    uint32_t data;
    uint16_t eventType;
    uint16_t eventData;
    data = MAILBOX_GetValue(MAILBOX, cpu_id);
    MAILBOX_ClearValueBits(MAILBOX, cpu_id, data);
    eventType = data >> 16;
    eventData = data & 0xFFFF;
    if (eventType < kMCMGR_EventTableLength)
    {
        if (MCMGR_eventTable[eventType].callback != NULL)
        {
            MCMGR_eventTable[eventType].callback(eventData, MCMGR_eventTable[eventType].callbackData);
        }
    }
}
void MAILBOX_IRQHandler ( void ) { #if defined ( FSL_FEATURE_MAILBOX_SIDE_A ) mailbox_cpu_id_t cpu_id = kMAILBOX_CM33_Core0 ; #else mailbox_cpu_id_t cpu_id = kMAILBOX_CM33_Core1 ; #endif uint32_t data ; uint16_t eventType ; uint16_t eventData ; data = MAILBOX_GetValue ( MAILBOX , cpu_id ) ; MAILBOX_ClearValueBits ( MAILBOX , cpu_id , data ) ; eventType = data >> 16 ; eventData = data & 0xFFFF ; if ( eventType < kMCMGR_EventTableLength ) { if ( MCMGR_eventTable [ eventType ] . callback != NULL ) { MCMGR_eventTable [ eventType ] . callback ( eventData , MCMGR_eventTable [ eventType ] . callbackData ) ; } } }
@brief ISR handler
 This function is called when data from Mailbox is received
@brief ISR handler This function is called when data from Mailbox is received