Implementation
Configure the STM
Configuration of the STM is done inside the function
initSTM()
by initializing an
instance of the
IfxStm_CompareConfig
structure with default values through the
function
IfxStm_initCompareConfig()
.
Then, the following parameters are modified:
›
ticks
– the total amount of ticks to count before the interrupt generation.
›
triggerPriority
– priority of the interrupt generated by the STM on compare match.
It can be a value from 0 to 255, with 0 meaning interrupt is disabled and 255 is the
highest priority.
›
typeOfService
– to define which service provider is responsible for handling the
interrupt. This can be any of the available CPUs or the DMA.
The above functions can be found in the iLLD header
IfxStm.h
.
6
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.