Implementation
Configuring the LED
The LED configuration is done once in the function
initGtmTom()
by setting the port
pin mode to output and push-pull by calling the function
IfxPort_setPinModeOutput()
, provided by iLLD header
IfxPort.h
.
Interrupt Service Routine (ISR)
The ISR implemented in this example contains the following steps:
›
Clear the timer event with the function
IfxGtm_Tom_Timer_acknowledgeTimerIrq()
(iLLD header
IfxGtm_Tom_Timer.h
).
›
Change the LED state by calling the function
IfxPort_togglePin()
(iLLD header
IfxPort.h
).
7
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.