Hello Yas Okada ,
Q1. What is the kCLOCK_Gpio3 (and others, such as kCLOCK_Gpio0)? I found no explanations on documents.
-> These are Clock gate names used for CLOCK_EnableClock/CLOCK_DisableClock.
kCLOCK_Gpio3 stand for GPIO3 (17). You can have a look the register of "AHB Clock Control register" in UM.
Q2. Why is kCLOCK_Gpio3 used in this example? (Related to kCLOCK_CoreSysClk?)
-> Because the LED function used the port3_14, need enable the clock of GPIO3.
/* Init LED. */
LED_INIT();
Q3. How do they produce one second interval?
-> Have a look at
/* Init rit module */
RIT_Init(RIT, &ritConfig);
and related register.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------