Implementation
Configure the CCU6 unit
Configuration of the CCU6 Timer is done by initializing an instance of the IfxCcu6_Timer_Config structure,
which contains the following fields:
›
base – a structure that allows to set:
–
frequency – input clock frequency in Hz of the timer module
–
period – 16-bit register that determines the maximum count value for the timer
›
timer – a parameter that allows to choose which of the two timers to configure
›
interrupt1 – a structure that allows to set:
–
priority – priority of the generated interrupt by CCU6. It can be a value from 0 to 255, with 0 meaning
interrupt is disabled, and 255 is the highest priority
–
type of service – defines the service provider responsible for handling the interrupt, which can be any
of the available CPUs, or the DMA
›
trigger – a structure for configuring the trigger, that allows to start Timer T13 in sync with Timer T12
The function IfxCcu6_Timer_initModuleConfig() fills the configuration structure with default values and
IfxCcu6_Timer_initModule() function initializes the timer module with the user configuration.
Both functions can be found in the iLLD header IfxCcu6_Timer.h.
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.
6
Need help?
Do you have a question about the CCU6 Interrupt 1 and is the answer not in the manual?