/* ** =================================================================== ** Method : ExtIntLdd5_Interrupt (component ExtInt_LDD) ** ** Description : ** The method services the interrupt of the selected peripheral(s) ** and eventually invokes event(s) of the component. ** This method is internal. It is used by Processor Expert only. ** =================================================================== */ void ExtIntLdd5_Interrupt(void) { /* {Default RTOS Adapter} ISR parameter is passed through the global variable */ ExtIntLdd5_TDeviceDataPtr DeviceDataPrv = INT_PORTE__DEFAULT_RTOS_ISRPARAM; /* Check the pin interrupt flag of the shared interrupt */ if (PORT_PDD_GetPinInterruptFlag(PORTE_BASE_PTR, ExtIntLdd5_PIN_INDEX)) { /* Clear the interrupt flag */ PORT_PDD_ClearPinInterruptFlag(PORTE_BASE_PTR, ExtIntLdd5_PIN_INDEX); /* Call OnInterrupt event */ ExtIntLdd5_OnInterrupt(DeviceDataPrv->UserData); } }
/* ** =================================================================== ** Method : ExtIntLdd5_Interrupt (component ExtInt_LDD) ** ** Description : ** The method services the interrupt of the selected peripheral(s) ** and eventually invokes event(s) of the component. ** This method is internal. It is used by Processor Expert only. ** =================================================================== */ void ExtIntLdd5_Interrupt(void) { /* {Default RTOS Adapter} ISR parameter is passed through the global variable */ ExtIntLdd5_TDeviceDataPtr DeviceDataPrv = INT_PORTD__DEFAULT_RTOS_ISRPARAM; /* Check if device is disabled */ if( !DeviceDataPrv->UserEnabled ){ return; } /* Check the pin interrupt flag of the shared interrupt */ if (PORT_PDD_GetPinInterruptFlag(ExtIntLdd5_PORTCONTROL_BASE_ADDRESS, ExtIntLdd5_PIN_INDEX)) { /* Clear the interrupt flag */ PORT_PDD_ClearPinInterruptFlag(ExtIntLdd5_PORTCONTROL_BASE_ADDRESS, ExtIntLdd5_PIN_INDEX); /* Call OnInterrupt event */ ExtIntLdd5_OnInterrupt(DeviceDataPrv->UserData); } }