30 uint32_t u32Freq =0, u32PLLSrc;
31 uint32_t u32SRC_N,u32PLL_M,u32PllReg;
33 u32PllReg =
CLK->PLLCTL;
67 u32Freq = u32PLLSrc * u32PLL_M / (u32SRC_N+1);
81 uint32_t u32Freqout, u32AHBDivider, u32ClkSel;
123 return (u32Freqout/u32AHBDivider);
156 CLK->APBCLK &= ~CLK_APBCLK_RTCCKEN_Msk;
NANO103 peripheral access layer header file. This file contains all the peripheral register's definit...
#define RTC_MISCCTL_GAINSEL_Msk
#define CLK_PLLCTL_PLL_SRC_HXT
#define CLK_CLKSEL0_HCLKSEL_HIRC
#define CLK_CLKSEL0_HCLKSEL_PLL
#define CLK_PLLCTL_PLL_SRC_HIRC
#define CLK_CLKSEL0_HCLKSEL_LIRC
#define CLK_CLKSEL0_HCLKSEL_HXT
#define CLK_CLKSEL0_HCLKSEL_LXT
#define CLK_CLKDIV0_HCLKDIV_Msk
#define CLK_PLLCTL_INDIV_Pos
#define CLK_APBCLK_RTCCKEN_Msk
#define CLK_PLLCTL_PLLSRC_Msk
#define CLK_PLLCTL_INDIV_Msk
#define CLK_CLKSEL0_HCLKSEL_Msk
#define CLK_PLLCTL_PLLMLP_Pos
#define CLK_PWRCTL_HIRC0FSEL_Msk
#define CLK_PLLCTL_PLLMLP_Msk
#define CLK_CLKSEL0_HIRCSEL_Msk
#define CLK
Pointer to CLK register structure.
#define RTC
Pointer to RTC register structure.
#define SYS
Pointer to SYS register structure.
uint32_t SysGet_PLLClockFreq(void)
Calculate current PLL clock frequency.
void SystemInit(void)
Support PA9 in 32-pin package and adjust LXT gain level. Should call with register protection disable...
uint32_t SysGet_HCLKFreq(void)
Get current HCLK clock frequency.
void SystemCoreClockUpdate(void)
This function is used to update the variable SystemCoreClock and must be called whenever the core clo...