Home
last modified time | relevance | path

Searched refs:u32PllReg (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
217 u32PllReg = CLK->PLLCTL; in CLK_GetCPUFreq()
219 if(u32PllReg & (CLK_PLLCTL_PD_Msk | CLK_PLLCTL_OE_Msk)) in CLK_GetCPUFreq()
227 if(u32PllReg & CLK_PLLCTL_PLLSRC_Msk) in CLK_GetCPUFreq()
237 if(u32PllReg & CLK_PLLCTL_BP_Msk) in CLK_GetCPUFreq()
244 u32NO = au8NoTbl[((u32PllReg & CLK_PLLCTL_OUTDIV_Msk) >> CLK_PLLCTL_OUTDIV_Pos)]; in CLK_GetCPUFreq()
245 u32NF = ((u32PllReg & CLK_PLLCTL_FBDIV_Msk) >> CLK_PLLCTL_FBDIV_Pos) + 2UL; in CLK_GetCPUFreq()
246 u32NR = ((u32PllReg & CLK_PLLCTL_INDIV_Msk) >> CLK_PLLCTL_INDIV_Pos) + 1UL; in CLK_GetCPUFreq()
1075 uint32_t u32PllFreq = 0UL, u32PllReg; in CLK_GetPLLClockFreq() local
1079 u32PllReg = CLK->PLLCTL; in CLK_GetPLLClockFreq()
[all …]
/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
227 u32PllReg = CLK->PLLCTL; in CLK_GetCPUFreq()
229 if(u32PllReg & CLK_PLLCTL_PD_Msk) in CLK_GetCPUFreq()
237 if(u32PllReg & CLK_PLLCTL_PLLSRC_Msk) in CLK_GetCPUFreq()
247 if(u32PllReg & CLK_PLLCTL_BP_Msk) in CLK_GetCPUFreq()
254 u32NO = au8NoTbl[((u32PllReg & CLK_PLLCTL_OUTDIV_Msk) >> CLK_PLLCTL_OUTDIV_Pos)]; in CLK_GetCPUFreq()
255 u32NF = ((u32PllReg & CLK_PLLCTL_FBDIV_Msk) >> CLK_PLLCTL_FBDIV_Pos) + 2UL; in CLK_GetCPUFreq()
256 u32NR = ((u32PllReg & CLK_PLLCTL_INDIV_Msk) >> CLK_PLLCTL_INDIV_Pos) + 1UL; in CLK_GetCPUFreq()
1225 uint32_t u32PllFreq = 0UL, u32PllReg; in CLK_GetPLLClockFreq() local
1229 u32PllReg = CLK->PLLCTL; in CLK_GetPLLClockFreq()
[all …]