AnsweredAssumed Answered

Where can I find documentation about clock source numbers?

Question asked by rdewaele on Feb 25, 2018
Latest reply on Feb 26, 2018 by rdewaele

The code example at he end of this post is generated by the clocks tool. (It includes details about the clocks version and processor / package.)
I have no questions about the code itself, but I have failed to find documentation on what number corresponds with what clock source. More specifically, I am asking about the three last lines defined as 2U, 0U and 2U respectively.

 

Thanks in advance! (And I hope I did not miss something obvious. )

 

----- code example below -----

/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
!!GlobalInfo
product: Clocks v4.0
processor: MKW41Z512xxx4
package_id: MKW41Z512VHT4
mcu_data: ksdk2_0
processor_version: 3.0.1
board: FRDM-KW41Z
* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
/* clang-format on */

#include "fsl_smc.h"
#include "fsl_rtc.h"
#include "clock_config.h"

/*******************************************************************************
* Definitions
******************************************************************************/
#define RTC_OSC_CAP_LOAD_0PF 0x0U /*!< RTC oscillator capacity load: 0pF */
#define SIM_LPUART_CLK_SEL_OSCERCLK_CLK 2U /*!< LPUART clock select: OSCERCLK clock */
#define SIM_OSC32KSEL_OSC32KCLK_CLK 0U /*!< OSC32KSEL select: OSC32KCLK clock */
#define SIM_TPM_CLK_SEL_OSCERCLK_CLK 2U /*!< TPM clock select: OSCERCLK clock */

Outcomes