#384 missing HSE bypass option for STM32F103

closed-fixed
2014-05-09
2013-02-27
wild-boar
No

This is the patch against trunk to add the HSE bypass for boards with oscillators instead of crystals:

Index: os/hal/platforms/STM32F1xx/hal_lld.c

--- os/hal/platforms/STM32F1xx/hal_lld.c (revision 5337)
+++ os/hal/platforms/STM32F1xx/hal_lld.c (working copy)
@@ -162,6 +162,10 @@
; /* Waits until HSI is selected. */

#if STM32_HSE_ENABLED
+#if defined(STM32_HSE_BYPASS)
+ /* HSE Bypass.*/
+ RCC->CR |= RCC_CR_HSEBYP;
+#endif
/* HSE activation.*/
RCC->CR |= RCC_CR_HSEON;
while (!(RCC->CR & RCC_CR_HSERDY))

Discussion

  • Giovanni Di Sirio

    • assigned_to: nobody --> gdisirio
    • priority: 5 --> 3
    • milestone: --> 2.5.1unstable
    • labels: 1130124 --> STM32 drivers
    • status: open --> open-fixed
     
  • Giovanni Di Sirio

    Hi,

    Fixed in repository, will be fixed in 2.5.2unstable.

     
  • Giovanni Di Sirio

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.