From df399e248b13414f3b26851d441b6adc5aa901b5 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 20 Jul 2009 15:15:02 +0200 Subject: Add RCC_APB1ENR bit definitions. --- include/libopenstm32/rcc.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/include/libopenstm32/rcc.h b/include/libopenstm32/rcc.h index 7588118..d610a8c 100644 --- a/include/libopenstm32/rcc.h +++ b/include/libopenstm32/rcc.h @@ -189,4 +189,30 @@ #define SPI1EN (1 << 12) #define USART1EN (1 << 14) +/* --- RCC_APB1ENR values -------------------------------------------------- */ + +/* Note: Bit marked (**) are reserved in "connectivity line" STM32s. */ +#define TIM2EN (1 << 0) +#define TIM3EN (1 << 1) +#define TIM4EN (1 << 2) +#define TIM5EN (1 << 3) +#define TIM6EN (1 << 4) +#define TIM7EN (1 << 5) +#define WWDGEN (1 << 11) +#define SPI2EN (1 << 14) +#define SPI3EN (1 << 15) +#define USART2EN (1 << 17) +#define USART3EN (1 << 18) +#define USART4EN (1 << 19) +#define USART5EN (1 << 20) +#define I2C1EN (1 << 21) +#define I2C2EN (1 << 22) +#define USBEN (1 << 23) /* (**) */ +#define CANEN (1 << 25) /* Alias for CAN1EN */ +#define CAN1EN (1 << 25) +#define CAN2EN (1 << 26) /* (**) */ +#define BKPEN (1 << 27) +#define PWREN (1 << 28) +#define DACEN (1 << 29) + #endif -- cgit v1.2.3