Removed oscillator stabilization delay on STM32 LSE and HSE when bypass mode is enabled.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@16306 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
0243fce2db
commit
283b61422b
|
@ -96,10 +96,10 @@ __STATIC_INLINE void hse_enable(void) {
|
|||
RCC->CR |= RCC_CR_HSEON | RCC_CR_HSEBYP;
|
||||
#else
|
||||
RCC->CR |= RCC_CR_HSEON;
|
||||
#endif
|
||||
while ((RCC->CR & RCC_CR_HSERDY) == 0U) {
|
||||
/* Waiting for HSE activation.*/
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
__STATIC_INLINE void hse_disable(void) {
|
||||
|
|
|
@ -97,11 +97,11 @@ __STATIC_INLINE void lse_init(void) {
|
|||
#else
|
||||
/* No LSE Bypass.*/
|
||||
RCC->BDCR |= STM32_LSEDRV | RCC_BDCR_LSEON | RCC_BDCR_LSESYSEN;
|
||||
#endif
|
||||
while ((RCC->BDCR & (RCC_BDCR_LSESYSRDY | RCC_BDCR_LSERDY)) !=
|
||||
(RCC_BDCR_LSESYSRDY | RCC_BDCR_LSERDY)) {
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
|
@ -96,10 +96,10 @@ __STATIC_INLINE void hse_enable(void) {
|
|||
RCC->CR |= RCC_CR_HSEON | RCC_CR_HSEBYP;
|
||||
#else
|
||||
RCC->CR |= RCC_CR_HSEON;
|
||||
#endif
|
||||
while ((RCC->CR & RCC_CR_HSERDY) == 0U) {
|
||||
/* Waiting for HSE activation.*/
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
__STATIC_INLINE void hse_disable(void) {
|
||||
|
|
|
@ -97,11 +97,11 @@ __STATIC_INLINE void lse_init(void) {
|
|||
#else
|
||||
/* No LSE Bypass.*/
|
||||
RCC->BDCR |= STM32_LSEDRV | RCC_BDCR_LSEON | RCC_BDCR_LSESYSEN;
|
||||
#endif
|
||||
while ((RCC->BDCR & (RCC_BDCR_LSESYSRDY | RCC_BDCR_LSERDY)) !=
|
||||
(RCC_BDCR_LSESYSRDY | RCC_BDCR_LSERDY)) {
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
Loading…
Reference in New Issue