Fixed bug #1114.
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:
parent
1e144de482
commit
2db79c1eb9
|
@ -276,14 +276,22 @@ void stm32_clock_init(void) {
|
||||||
#endif
|
#endif
|
||||||
while ((RCC->CR & RCC_CR_HSERDY) == 0)
|
while ((RCC->CR & RCC_CR_HSERDY) == 0)
|
||||||
; /* Waits until HSE is stable. */
|
; /* 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.*/
|
/* CSI activation.*/
|
||||||
#if STM32_CSI_ENABLED == TRUE
|
#if STM32_CSI_ENABLED == TRUE
|
||||||
RCC->CR |= RCC_CR_CSION;
|
RCC->CR |= RCC_CR_CSION;
|
||||||
while ((RCC->CR & RCC_CR_CSIRDY) == 0)
|
while ((RCC->CR & RCC_CR_CSIRDY) == 0)
|
||||||
; /* Waits until CSI is stable. */
|
; /* Waits until CSI is stable. */
|
||||||
#endif /* STM32_HSE_ENABLED == TRUE */
|
#endif /* STM32_CSI_ENABLED == TRUE */
|
||||||
|
|
||||||
/* LSI activation.*/
|
/* LSI activation.*/
|
||||||
#if STM32_LSI_ENABLED == TRUE
|
#if STM32_LSI_ENABLED == TRUE
|
||||||
|
|
|
@ -78,6 +78,7 @@
|
||||||
- NEW: Added a new setting to STM32 USBv1 allowing for some clock deviation
|
- NEW: Added a new setting to STM32 USBv1 allowing for some clock deviation
|
||||||
from 48MHz. Renamed setting USB_HOST_WAKEUP_DURATION to
|
from 48MHz. Renamed setting USB_HOST_WAKEUP_DURATION to
|
||||||
STM32_USB_HOST_WAKEUP_DURATION for consistency.
|
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
|
- FIX: Fixed wrong sector count in EFL driver for L4+ dual bank configuration
|
||||||
(bug #1112).
|
(bug #1112).
|
||||||
- FIX: Fixed wrong preprocessor checks in STM32 TIMv1 ICU driver (bug #1111).
|
- FIX: Fixed wrong preprocessor checks in STM32 TIMv1 ICU driver (bug #1111).
|
||||||
|
|
Loading…
Reference in New Issue