/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/common/bsp/StdDriver/src/ |
D | spi.c | 54 uint32_t u32ClkSrc = 0UL, u32Div, u32HCLKFreq, u32PCLK0Freq, u32PCLK1Freq, u32RetValue = 0UL; in SPI_Open() local 108 u32ClkSrc = __HXT; /* Clock source is HXT */ in SPI_Open() 112 u32ClkSrc = CLK_GetPLLClockFreq(); /* Clock source is PLL */ in SPI_Open() 116 u32ClkSrc = CLK_GetPCLK1Freq(); /* Clock source is PCLK1 */ in SPI_Open() 120 u32ClkSrc = __HIRC; /* Clock source is HIRC */ in SPI_Open() 127 u32ClkSrc = __HXT; /* Clock source is HXT */ in SPI_Open() 131 u32ClkSrc = CLK_GetPLLClockFreq(); /* Clock source is PLL */ in SPI_Open() 135 u32ClkSrc = CLK_GetPCLK0Freq(); /* Clock source is PCLK0 */ in SPI_Open() 139 u32ClkSrc = __HIRC; /* Clock source is HIRC */ in SPI_Open() 146 u32ClkSrc = __HXT; /* Clock source is HXT */ in SPI_Open() [all …]
|
D | scuart.c | 50 uint32_t u32ClkSrc = 0, u32Num = 0, u32ClkFreq = __HIRC, u32Div = 0; in SCUART_GetClock() local 56 u32ClkSrc = CLK_GetModuleClockSource(SC0_MODULE); in SCUART_GetClock() 62 u32ClkSrc = CLK_GetModuleClockSource(SC1_MODULE); in SCUART_GetClock() 68 u32ClkSrc = CLK_GetModuleClockSource(SC2_MODULE); in SCUART_GetClock() 79 if(u32ClkSrc == 0UL) in SCUART_GetClock() 83 else if(u32ClkSrc == 1UL) in SCUART_GetClock() 87 else if(u32ClkSrc == 2UL) in SCUART_GetClock()
|
D | sc.c | 362 uint32_t u32ClkSrc = 0, u32Num = 0, u32ClkFreq = __HIRC, u32Div = 0; in SC_GetInterfaceClock() local 368 u32ClkSrc = CLK_GetModuleClockSource(SC0_MODULE); in SC_GetInterfaceClock() 374 u32ClkSrc = CLK_GetModuleClockSource(SC1_MODULE); in SC_GetInterfaceClock() 380 u32ClkSrc = CLK_GetModuleClockSource(SC2_MODULE); in SC_GetInterfaceClock() 391 if(u32ClkSrc == 0UL) in SC_GetInterfaceClock() 395 else if(u32ClkSrc == 1UL) in SC_GetInterfaceClock() 399 else if(u32ClkSrc == 2UL) in SC_GetInterfaceClock()
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | qspi.c | 52 uint32_t u32ClkSrc = 0UL, u32Div, u32HCLKFreq, u32PCLK0Freq, u32RetValue = 0UL; in QSPI_Open() local 89 u32ClkSrc = __HXT; /* Clock source is HXT */ in QSPI_Open() 93 u32ClkSrc = CLK_GetPLLClockFreq(); /* Clock source is PLL */ in QSPI_Open() 97 u32ClkSrc = CLK_GetPCLK0Freq(); /* Clock source is PCLK0 */ in QSPI_Open() 101 u32ClkSrc = __HIRC; /* Clock source is HIRC */ in QSPI_Open() 110 u32RetValue = u32ClkSrc; in QSPI_Open() 112 else if(u32BusClock >= u32ClkSrc) in QSPI_Open() 117 u32RetValue = u32ClkSrc; in QSPI_Open() 124 u32RetValue = (u32ClkSrc / (0x1FFUL + 1UL)); in QSPI_Open() 128 …u32Div = (((u32ClkSrc * 10UL) / u32BusClock + 5UL) / 10UL) - 1UL; /* Round to the nearest integer … in QSPI_Open() [all …]
|
D | clk.c | 55 void CLK_EnableCKO(uint32_t u32ClkSrc, uint32_t u32ClkDiv, uint32_t u32ClkDivBy1En) in CLK_EnableCKO() argument 64 CLK->CLKSEL1 = (CLK->CLKSEL1 & (~CLK_CLKSEL1_CLKOSEL_Msk)) | (u32ClkSrc); in CLK_EnableCKO() 390 void CLK_SetHCLK(uint32_t u32ClkSrc, uint32_t u32ClkDiv) in CLK_SetHCLK() argument 414 CLK->CLKSEL0 = (CLK->CLKSEL0 & (~CLK_CLKSEL0_HCLKSEL_Msk)) | u32ClkSrc; in CLK_SetHCLK() 601 void CLK_SetModuleClock(uint32_t u32ModuleIdx, uint32_t u32ClkSrc, uint32_t u32ClkDiv) in CLK_SetModuleClock() argument 616 RTC->LXTCTL = (RTC->LXTCTL & (~RTC_LXTCTL_RTCCKSEL_Msk)) | (u32ClkSrc); in CLK_SetModuleClock() 639 …M32(u32Sel) & (~(MODULE_CLKSEL_Msk(u32ModuleIdx) << MODULE_CLKSEL_Pos(u32ModuleIdx)))) | u32ClkSrc; in CLK_SetModuleClock() 656 void CLK_SetSysTickClockSrc(uint32_t u32ClkSrc) in CLK_SetSysTickClockSrc() argument 658 CLK->CLKSEL0 = (CLK->CLKSEL0 & ~CLK_CLKSEL0_STCLKSEL_Msk) | u32ClkSrc; in CLK_SetSysTickClockSrc() 1063 void CLK_EnableSysTick(uint32_t u32ClkSrc, uint32_t u32Count) in CLK_EnableSysTick() argument [all …]
|
D | rtc.c | 1044 uint32_t RTC_SetClockSource(uint32_t u32ClkSrc) in RTC_SetClockSource() argument 1048 if(u32ClkSrc == RTC_CLOCK_SOURCE_LXT) in RTC_SetClockSource() 1056 else if(u32ClkSrc == RTC_CLOCK_SOURCE_LIRC32K) in RTC_SetClockSource() 1068 else if(u32ClkSrc == RTC_CLOCK_SOURCE_LIRC) in RTC_SetClockSource()
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/ |
D | qspi.c | 52 uint32_t u32ClkSrc = 0UL, u32Div, u32HCLKFreq, u32PCLK0Freq, u32RetValue = 0UL; in QSPI_Open() local 89 u32ClkSrc = __HXT; /* Clock source is HXT */ in QSPI_Open() 93 u32ClkSrc = CLK_GetPLLClockFreq(); /* Clock source is PLL */ in QSPI_Open() 97 u32ClkSrc = CLK_GetPCLK0Freq(); /* Clock source is PCLK0 */ in QSPI_Open() 101 u32ClkSrc = __HIRC; /* Clock source is HIRC */ in QSPI_Open() 110 u32RetValue = u32ClkSrc; in QSPI_Open() 112 else if(u32BusClock >= u32ClkSrc) in QSPI_Open() 117 u32RetValue = u32ClkSrc; in QSPI_Open() 124 u32RetValue = (u32ClkSrc / (0x1FFUL + 1UL)); in QSPI_Open() 128 …u32Div = (((u32ClkSrc * 10UL) / u32BusClock + 5UL) / 10UL) - 1UL; /* Round to the nearest integer … in QSPI_Open() [all …]
|
D | clk.c | 55 void CLK_EnableCKO(uint32_t u32ClkSrc, uint32_t u32ClkDiv, uint32_t u32ClkDivBy1En) in CLK_EnableCKO() argument 64 CLK->CLKSEL1 = (CLK->CLKSEL1 & (~CLK_CLKSEL1_CLKOSEL_Msk)) | (u32ClkSrc); in CLK_EnableCKO() 388 void CLK_SetHCLK(uint32_t u32ClkSrc, uint32_t u32ClkDiv) in CLK_SetHCLK() argument 407 if(u32ClkSrc == CLK_CLKSEL0_HCLKSEL_HIRC48) in CLK_SetHCLK() 413 CLK->CLKSEL0 = (CLK->CLKSEL0 & (~CLK_CLKSEL0_HCLKSEL_Msk)) | u32ClkSrc; in CLK_SetHCLK() 541 void CLK_SetModuleClock(uint32_t u32ModuleIdx, uint32_t u32ClkSrc, uint32_t u32ClkDiv) in CLK_SetModuleClock() argument 560 …M32(u32Sel) & (~(MODULE_CLKSEL_Msk(u32ModuleIdx) << MODULE_CLKSEL_Pos(u32ModuleIdx)))) | u32ClkSrc; in CLK_SetModuleClock() 576 void CLK_SetSysTickClockSrc(uint32_t u32ClkSrc) in CLK_SetSysTickClockSrc() argument 578 CLK->CLKSEL0 = (CLK->CLKSEL0 & ~CLK_CLKSEL0_STCLKSEL_Msk) | u32ClkSrc; in CLK_SetSysTickClockSrc() 955 void CLK_EnableSysTick(uint32_t u32ClkSrc, uint32_t u32Count) in CLK_EnableSysTick() argument [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/common/bsp/StdDriver/inc/ |
D | ecap.h | 361 #define ECAP_SEL_TIMER_CLK_SRC(ecap, u32ClkSrc) ((ecap)->CTL1 = ((ecap)->CTL1 & ~ECAP_CTL1_CNTSRCSE… argument
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/ |
D | clk.h | 810 void CLK_EnableCKO(uint32_t u32ClkSrc, uint32_t u32ClkDiv, uint32_t u32ClkDivBy1En); 820 void CLK_SetHCLK(uint32_t u32ClkSrc, uint32_t u32ClkDiv); 821 void CLK_SetModuleClock(uint32_t u32ModuleIdx, uint32_t u32ClkSrc, uint32_t u32ClkDiv); 822 void CLK_SetSysTickClockSrc(uint32_t u32ClkSrc); 830 void CLK_EnableSysTick(uint32_t u32ClkSrc, uint32_t u32Count);
|
D | gpio.h | 670 #define GPIO_SET_DEBOUNCE_TIME(port, u32ClkSrc, u32ClkSel) ((port)->DBCTL = (GPIO_DBCTL_ICLKON_M… argument
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/ |
D | clk.h | 1026 void CLK_EnableCKO(uint32_t u32ClkSrc, uint32_t u32ClkDiv, uint32_t u32ClkDivBy1En); 1036 void CLK_SetHCLK(uint32_t u32ClkSrc, uint32_t u32ClkDiv); 1037 void CLK_SetModuleClock(uint32_t u32ModuleIdx, uint32_t u32ClkSrc, uint32_t u32ClkDiv); 1038 void CLK_SetSysTickClockSrc(uint32_t u32ClkSrc); 1046 void CLK_EnableSysTick(uint32_t u32ClkSrc, uint32_t u32Count);
|
D | rtc.h | 382 uint32_t RTC_SetClockSource(uint32_t u32ClkSrc);
|
D | gpio.h | 1058 #define GPIO_SET_DEBOUNCE_TIME(port, u32ClkSrc, u32ClkSel) ((port)->DBCTL = (GPIO_DBCTL_ICLKON_M… argument
|