diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-05-20 12:17:34 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-05-20 12:17:34 -0600 |
commit | 27045911445a07fe3a39962ce2b428d133971a85 (patch) | |
tree | 416d7ca161a7a3dec752f70b87393646f7f968c6 /nuttx/arch/arm/src/stm32/chip | |
parent | 33ab4ed94393e3c95d1155394789ee6aabfd42a9 (diff) | |
download | px4-nuttx-27045911445a07fe3a39962ce2b428d133971a85.tar.gz px4-nuttx-27045911445a07fe3a39962ce2b428d133971a85.tar.bz2 px4-nuttx-27045911445a07fe3a39962ce2b428d133971a85.zip |
Fix STM32L-Discovery clock setup - The X3 crystal is not fitted on the board
Diffstat (limited to 'nuttx/arch/arm/src/stm32/chip')
-rw-r--r-- | nuttx/arch/arm/src/stm32/chip/stm32l15xxx_rcc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32l15xxx_rcc.h b/nuttx/arch/arm/src/stm32/chip/stm32l15xxx_rcc.h index e5a1736bb..7b7dd90e6 100644 --- a/nuttx/arch/arm/src/stm32/chip/stm32l15xxx_rcc.h +++ b/nuttx/arch/arm/src/stm32/chip/stm32l15xxx_rcc.h @@ -90,6 +90,12 @@ /* Bits 19-23: Reserved */ #define RCC_CR_PLLON (1 << 24) /* Bit 24: PLL enable */ #define RCC_CR_PLLRDY (1 << 25) /* Bit 25: PLL clock ready flag */ + /* Bits 26-27: Reserved */ +#define RCC_CR_CSSON (1 << 28) /* Bit 16: Clock security system enable */ +#define RCC_CR_RTCPRE_SHIFT (29) /* Bits 29-30: RTC/LCD prescaler */ +#define RCC_CR_RTCPRE_MASK (3 << RCC_CR_RTCPRE_SHIFT) + /* Bit 31: Reserved */ +#define RCC_CR_RSTVAL 0x00000300 /* Internal clock sources calibration register */ |