Implementation
Configure the Interrupt Service Routine
The function implementing the ISR (
isrSTM()
) needs to be assigned a
priority
and a
core
responsible for its execution.
This is done with the macro
IFX_INTERRUPT(isr, vectabNum, priority)
.
When triggered, the ISR:
›
Instructs the STM to raise the next interrupt after a certain amount of time by
updating
its
compare register
with the function
IfxStm_increaseCompare()
.
›
Toggles the LED by changing the state of the port pin using the function
IfxPort_setPinState()
.
7
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.