
Implementation
The Interrupt Service Routine (ISR)
›
The alarm status flag reset is implemented inside the ISR triggered by the SMU
(
IfxSmu_clearAlarm()
). In order to enable the clearing of the alarm, the command
IfxSmu_cmd(IfxSmu_Cmd_enableClearAlarmStatus)
is required. Both functions are provided
by the iLLD header
IfxSmu.h
.
›
The LED is turned on inside the ISR to indicate the successful configuration of the SMU and the
triggering of the interrupt. This is done by setting the port pin of the connected LED by using the
function
IfxPort_setPinState()
from the iLLD header
IfxPort.h
.
›
The method implementing the ISR needs to be assigned a
priority
and a
CPU core
responsible
for its execution. This is done with the macro
IFX_INTERRUPT(isr, vectabNum, priority)
.
7
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.