AnsweredAssumed Answered

Interval of RIT (Repetitive Interrupt Timer) SDK example

Question asked by Yas Okada on Oct 8, 2019
Latest reply on Oct 11, 2019 by Yas Okada

My Environment:

- OS: Ubuntu 18.04 LTS

- Board: LPCXpresso54628

- IDE: MCUXpresso IDE v11.0.1 [Build 2563] [2019-09-01]


I examined rit.c from SDK example. With the code, I confirmed that the LED is toggled in one second interval.

However, I cannot understand how the one second interval is configured.


Related sentences in [rit.c] may be


A. #define RIT_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_CoreSysClk)

B. CLOCK_EnableClock(kCLOCK_Gpio3);




Q1. What is the kCLOCK_Gpio3 (and others, such as kCLOCK_Gpio0)?  I found no explanations on documents.

Q2. Why is kCLOCK_Gpio3 used in this example? (Related to kCLOCK_CoreSysClk?)

Q3. How do they produce one second interval?



Thanks in advance.