/* ** =================================================================== ** Method : FTM_Interrupt (component TimerUnit_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 FTM_Interrupt(LDD_RTOS_TISRParameter _isrParameter) { /* {MQXLite RTOS Adapter} ISR parameter is passed as parameter from RTOS interrupt dispatcher */ FTM_TDeviceDataPtr DeviceDataPrv = (FTM_TDeviceDataPtr)_isrParameter; LPTMR_PDD_ClearInterruptFlag(LPTMR0_BASE_PTR); /* Clear interrupt flag */ FTM_OnCounterRestart(DeviceDataPrv->UserDataPtr); /* Invoke OnCounterRestart event */ }
void Cpu_OnLLSWakeUpINT(void) { uint32_t tmp; tmp = Cpu_GetLLSWakeUpFlags(); if (tmp&LLWU_INT_MODULE0) { /* LPTMR */ #if 0 LED1_On(); /* red */ WAIT1_Waitms(1); LED1_Off(); /* red */ WAIT1_Waitms(100); #endif LPTMR_PDD_ClearInterruptFlag(LPTMR0_BASE_PTR); /* Clear interrupt flag */ } }