30 uint32_t u32Freq =0, u32PLLSrc;
31 uint32_t u32NO, u32NR, u32IN_DV, u32PllReg;
33 u32PllReg =
CLK->PLLCTL;
48 else if (u32IN_DV == 1)
50 else if (u32IN_DV == 2)
69 uint32_t u32Freqout, u32AHBDivider, u32ClkSel;
95 return (u32Freqout/u32AHBDivider);
126void AssertError(uint8_t * file, uint32_t line)
129 printf(
"[%s] line %d : wrong parameters.\r\n", file, line);
Nano100 series peripheral access layer header file. This file contains all the peripheral register's ...
#define CLK_CLKSEL0_HCLK_S_LXT
#define CLK_PLLCTL_OUT_DV
#define CLK_CLKSEL0_HCLK_S_HXT
#define CLK_CLKSEL0_HCLK_S_PLL
#define CLK_CLKSEL0_HCLK_S_LIRC
#define CLK_CLKSEL0_HCLK_S_Msk
#define CLK_PLLCTL_IN_DV_Msk
#define CLK_PLLCTL_FB_DV_Msk
#define CLK_PLLCTL_PLL_SRC_Msk
#define CLK_CLKDIV0_HCLK_N_Msk
#define CLK
Pointer to CLK register structure.
uint32_t SysGet_HCLKFreq(void)
Get current HCLK clock frequency.
uint32_t SysGet_PLLClockFreq(void)
Calculate current PLL clock frequency.
void SystemCoreClockUpdate(void)
This function is used to update the variable SystemCoreClock and must be called whenever the core clo...