diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-05-20 10:08:44 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-05-20 10:08:44 -0600 |
commit | 33ab4ed94393e3c95d1155394789ee6aabfd42a9 (patch) | |
tree | 5adb3ae8f815dae4173e0eab272f528496ea0c1a /nuttx/arch/arm/src/stm32/chip/stm32l15xxx_rcc.h | |
parent | b97a5893e75583cc0d2afeb5c3bcf1f52331a55d (diff) | |
download | px4-nuttx-33ab4ed94393e3c95d1155394789ee6aabfd42a9.tar.gz px4-nuttx-33ab4ed94393e3c95d1155394789ee6aabfd42a9.tar.bz2 px4-nuttx-33ab4ed94393e3c95d1155394789ee6aabfd42a9.zip |
Misc updates to STL32L15X logic
Diffstat (limited to 'nuttx/arch/arm/src/stm32/chip/stm32l15xxx_rcc.h')
-rw-r--r-- | nuttx/arch/arm/src/stm32/chip/stm32l15xxx_rcc.h | 5 |
1 files changed, 5 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 4a94d0d55..e5a1736bb 100644 --- a/nuttx/arch/arm/src/stm32/chip/stm32l15xxx_rcc.h +++ b/nuttx/arch/arm/src/stm32/chip/stm32l15xxx_rcc.h @@ -111,6 +111,8 @@ #define RCC_ICSCR_MSITRIM_SHIFT (24) /* Bits 24-31: MSI clock trimming */ #define RCC_ICSCR_MSITRIM_MASK (0xff << RCC_ICSCR_MSITRIM_SHIFT) +#define RCC_ICSR_RSTVAL 0x0000b000 + /* Clock configuration register */ #define RCC_CFGR_SW_SHIFT (0) /* Bits 0-1: System clock Switch */ @@ -188,6 +190,8 @@ # define RCC_CFGR_MCOPRE_DIV8 (3 << RCC_CFGR_MCOPRE_SHIFT) /* 011: MCO is divided by 8 */ # define RCC_CFGR_MCOPRE_DIV16 (4 << RCC_CFGR_MCOPRE_SHIFT) /* 100: MCO is divided by 16 */ /* Bit 31: Reserved */ +#define RCC_CFGR_RESET 0x00000000 + /* Clock interrupt register */ #define RCC_CIR_LSIRDYF (1 << 0) /* Bit 0: LSI ready interrupt flag */ @@ -286,6 +290,7 @@ /* AHB Peripheral Clock enable register */ +#define RCC_AHBENR_GPIOEN(n) (1 << (n)) #define RCC_AHBENR_GPIOPAEN (1 << 0) /* Bit 0: I/O port A clock enable */ #define RCC_AHBENR_GPIOPBEN (1 << 1) /* Bit 1: I/O port B clock enable */ #define RCC_AHBENR_GPIOPCEN (1 << 2) /* Bit 2: I/O port C clock enable */ |