Searched refs:u32NR (Results 1 – 2 of 2) sorted by relevance
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/ |
D | clk.c | 212 uint32_t u32PllReg, u32FIN, u32NF, u32NR, u32NO; in CLK_GetCPUFreq() local 246 u32NR = ((u32PllReg & CLK_PLLCTL_INDIV_Msk) >> CLK_PLLCTL_INDIV_Pos) + 1UL; in CLK_GetCPUFreq() 249 PllClock = (((u32FIN >> 2) * (u32NF << 1)) / (u32NR * u32NO) << 2); in CLK_GetCPUFreq() 768 uint32_t u32PllSrcClk, u32NR, u32NF, u32NO, u32PllClk; in CLK_EnablePLL() local 823 u32NR = 3UL; in CLK_EnablePLL() 830 for(; u32NR <= 32UL; u32NR++) in CLK_EnablePLL() 832 u32Tmp = u32PllSrcClk / u32NR; in CLK_EnablePLL() 844 u32MinNR = u32NR; in CLK_EnablePLL() 1076 uint32_t u32FIN, u32NF, u32NR, u32NO; in CLK_GetPLLClockFreq() local 1108 u32NR = ((u32PllReg & CLK_PLLCTL_INDIV_Msk) >> CLK_PLLCTL_INDIV_Pos) + 1UL; in CLK_GetPLLClockFreq() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | clk.c | 222 uint32_t u32PllReg, u32FIN, u32NF, u32NR, u32NO; in CLK_GetCPUFreq() local 256 u32NR = ((u32PllReg & CLK_PLLCTL_INDIV_Msk) >> CLK_PLLCTL_INDIV_Pos) + 1UL; in CLK_GetCPUFreq() 259 PllClock = (((u32FIN >> 2) * (u32NF << 1)) / (u32NR * u32NO) << 2); in CLK_GetCPUFreq() 890 uint32_t u32PllSrcClk, u32NR, u32NF, u32NO, u32PllClk; in CLK_EnablePLL() local 944 u32NR = 3UL; in CLK_EnablePLL() 951 for(; u32NR <= 32UL; u32NR++) /* max NR = 32 since NR = INDIV+1 and INDIV = 0~31 */ in CLK_EnablePLL() 953 u32Tmp = u32PllSrcClk / u32NR; /* FREF = FIN/NR */ in CLK_EnablePLL() 965 u32MinNR = u32NR; in CLK_EnablePLL() 1226 uint32_t u32FIN, u32NF, u32NR, u32NO; in CLK_GetPLLClockFreq() local 1257 u32NR = ((u32PllReg & CLK_PLLCTL_INDIV_Msk) >> CLK_PLLCTL_INDIV_Pos) + 1UL; in CLK_GetPLLClockFreq() [all …]
|