diff options
| author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-10-23 20:51:36 +0000 | 
|---|---|---|
| committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-10-23 20:51:36 +0000 | 
| commit | 7112dfa32e35f35998bf4ab05888317ef5aed59a (patch) | |
| tree | e67e397e60dafc1f68437b0dba03eb5c2828120e /os/hal/platforms/STM32F0xx/hal_lld.c | |
| parent | efbd7db9789c18e465750646d51a5fab936c5fc6 (diff) | |
| download | ChibiOS-7112dfa32e35f35998bf4ab05888317ef5aed59a.tar.gz ChibiOS-7112dfa32e35f35998bf4ab05888317ef5aed59a.tar.bz2 ChibiOS-7112dfa32e35f35998bf4ab05888317ef5aed59a.zip | |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4777 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F0xx/hal_lld.c')
| -rw-r--r-- | os/hal/platforms/STM32F0xx/hal_lld.c | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/os/hal/platforms/STM32F0xx/hal_lld.c b/os/hal/platforms/STM32F0xx/hal_lld.c index 401afe7e3..1e7a83e36 100644 --- a/os/hal/platforms/STM32F0xx/hal_lld.c +++ b/os/hal/platforms/STM32F0xx/hal_lld.c @@ -29,6 +29,10 @@  #include "ch.h"
  #include "hal.h"
 +/* TODO: LSEBYP like in F3.*/
 +/* TODO: LSEDRV like in F3.*/
 +/* TODO: PREDIV like in F3.*/
 +
  /*===========================================================================*/
  /* Driver exported variables.                                                */
  /*===========================================================================*/
 @@ -142,7 +146,13 @@ void stm32_clock_init(void) {  #if STM32_HSE_ENABLED
    /* HSE activation.*/
 +#if defined(STM32_HSE_BYPASS)
 +  /* HSE Bypass.*/
 +  RCC->CR |= RCC_CR_HSEON | RCC_CR_HSEBYP;
 +#else
 +  /* No HSE Bypass.*/
    RCC->CR |= RCC_CR_HSEON;
 +#endif
    while (!(RCC->CR & RCC_CR_HSERDY))
      ;                                       /* Waits until HSE is stable.   */
  #endif
 | 
