Implementation
Initialization of PWM Buzzer
The initialization of the PWM Buzzer is done once in the setup phase by calling the function
initPWMBuzzer(), which contains the following steps:
›
Initialize the time constants by calling the service function initTime() from iLLD header file
Bsp.h
›
Enable the GTM by calling the function IfxGtm_enable()
›
Enable the FXU clocks by calling the function IfxGtm_Cmu_enableClocks()
›
Initialize the timer configuration with default values by calling the function
IfxGtm_Tom_Timer_initConfig()
›
Set the timer configuration variable timerCfg with the user defined values
›
Initialize the timer through the iLLD function IfxGtm_Tom_Timer_init()
›
Enable the GTM TOM channel 4 by calling the iLLD function
IfxGtm_Tom_Tgc_enableChannelsUpdate()
All the functions used for the configuration of the PWM Buzzer are provided by the iLLD header
IfxGtm_Tom_Pwm.h.
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.
5
Need help?
Do you have a question about the PWM Buzzer 1 and is the answer not in the manual?
Questions and answers