iLLD_TC27xC
1.0
|
![]() |
The Stm Standard driver provides APIs to initialize, configure and control the Stm.
In the following sections it will be described, how to integrate the driver into the application framework.
Include following header file into your C code:
Declare STM variables :
See also IfxLld_Cpu_Interrupt_Usage
Define priorities for the Interrrupt handlers. This is normally done in the Ifx_IntPrioDef.h file:
Add the interrupt service routines to your C code. They have to call the Stm interrupt handlers:
Finally install the interrupt handlers in your initialisation function:
The module initialisation can be done in the same function.
Now the Stm shall generate interrupts regularly based on the configured time !