Home
last modified time | relevance | path

Searched refs:u32NF (Results 1 – 2 of 2) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/
Dclk.c212 uint32_t u32PllReg, u32FIN, u32NF, u32NR, u32NO; in CLK_GetCPUFreq() local
245 u32NF = ((u32PllReg & CLK_PLLCTL_FBDIV_Msk) >> CLK_PLLCTL_FBDIV_Pos) + 2UL; 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
835 for(u32NF = 2UL; u32NF <= 513UL; u32NF++) in CLK_EnablePLL()
837 u32Tmp2 = (u32Tmp * u32NF) << 1; in CLK_EnablePLL()
845 u32MinNF = u32NF; in CLK_EnablePLL()
1076 uint32_t u32FIN, u32NF, u32NR, u32NO; in CLK_GetPLLClockFreq() local
1107 u32NF = ((u32PllReg & CLK_PLLCTL_FBDIV_Msk) >> CLK_PLLCTL_FBDIV_Pos) + 2UL; in CLK_GetPLLClockFreq()
1111 u32PllFreq = (((u32FIN >> 2) * (u32NF << 1)) / (u32NR * u32NO) << 2); in CLK_GetPLLClockFreq()
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/
Dclk.c222 uint32_t u32PllReg, u32FIN, u32NF, u32NR, u32NO; in CLK_GetCPUFreq() local
255 u32NF = ((u32PllReg & CLK_PLLCTL_FBDIV_Msk) >> CLK_PLLCTL_FBDIV_Pos) + 2UL; 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
956 …for(u32NF = 2UL; u32NF <= 513UL; u32NF++) /* NF = 2~513 since NF = FBDIV+2 and FBDIV = 0~511… in CLK_EnablePLL()
958 … u32Tmp2 = (u32Tmp * u32NF) << 1; /* FVCO = FREF*2*NF */ in CLK_EnablePLL()
966 u32MinNF = u32NF; in CLK_EnablePLL()
1226 uint32_t u32FIN, u32NF, u32NR, u32NO; in CLK_GetPLLClockFreq() local
1256 u32NF = ((u32PllReg & CLK_PLLCTL_FBDIV_Msk) >> CLK_PLLCTL_FBDIV_Pos) + 2UL; in CLK_GetPLLClockFreq()
1260 u32PllFreq = (((u32FIN >> 2) * (u32NF << 1)) / (u32NR * u32NO) << 2); in CLK_GetPLLClockFreq()