git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_20.3.x@13771 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2020-07-22 09:17:30 +00:00
parent 1e144de482
commit 2db79c1eb9
2 changed files with 11 additions and 2 deletions

View File

@ -276,14 +276,22 @@ void stm32_clock_init(void) {
#endif
while ((RCC->CR & RCC_CR_HSERDY) == 0)
; /* Waits until HSE is stable. */
#endif
#endif /* STM32_HSE_ENABLED == TRUE */
/* HSI48 activation.*/
#if STM32_HSI48_ENABLED == TRUE
RCC->CR |= RCC_CR_HSI48ON;
while ((RCC->CR & RCC_CR_HSI48RDY) == 0)
; /* Waits until HSI48 is stable. */
#endif /* STM32_HSI48_ENABLED == TRUE */
/* CSI activation.*/
#if STM32_CSI_ENABLED == TRUE
RCC->CR |= RCC_CR_CSION;
while ((RCC->CR & RCC_CR_CSIRDY) == 0)
; /* Waits until CSI is stable. */
#endif /* STM32_HSE_ENABLED == TRUE */
#endif /* STM32_CSI_ENABLED == TRUE */
/* LSI activation.*/
#if STM32_LSI_ENABLED == TRUE

View File

@ -78,6 +78,7 @@
- NEW: Added a new setting to STM32 USBv1 allowing for some clock deviation
from 48MHz. Renamed setting USB_HOST_WAKEUP_DURATION to
STM32_USB_HOST_WAKEUP_DURATION for consistency.
- FIX: Fixed HSI48 not getting enabled on STM32H7 (bug #1114).
- FIX: Fixed wrong sector count in EFL driver for L4+ dual bank configuration
(bug #1112).
- FIX: Fixed wrong preprocessor checks in STM32 TIMv1 ICU driver (bug #1111).