Hi,
I am working on a project using example trgmux_lptmr_trigger_lpit as a starting point. I have a question about how I know what timer is set in the code. Specifically, in this example, the following code exists:
/* Get source clock for LPTMR driver */
#define LPTMR_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_LpoClk)
/* Define LPTMR microseconds counts value */
#define LPTMR_USEC_COUNT 500000U
...
/*
* Set timer period.
* Note : the parameter "ticks" of LPTMR_SetTimerPeriod should be equal or greater than 1.
*/
LPTMR_SetTimerPeriod(LPTMR0, USEC_TO_COUNT(LPTMR_USEC_COUNT, LPTMR_SOURCE_CLOCK));
How do I know kCLOCK_LpoClk is the clock I should pick for the macro but not any other clock? I assumes this means kCLOCK_LpoClk is set by the code somewhere but I couldn't find where.
Can anyone help?
Thanks,
Qing