aboutsummaryrefslogtreecommitdiff
path: root/include/libopenstm32/rcc.h
diff options
context:
space:
mode:
authorUwe Hermann2009-07-21 20:25:00 +0200
committerUwe Hermann2009-07-21 20:25:00 +0200
commit6f0070991c4af99215a39ef26bd0c099184474d4 (patch)
tree2b04bf28c2dd8007d3bfe22de6d152a9371a207c /include/libopenstm32/rcc.h
parent446de3872813e808ee3cbc5c94f5692e70f566a9 (diff)
Add RCC_APB2RSTR bit definitions.
Diffstat (limited to 'include/libopenstm32/rcc.h')
-rw-r--r--include/libopenstm32/rcc.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/include/libopenstm32/rcc.h b/include/libopenstm32/rcc.h
index 35d52aa..65e9d0a 100644
--- a/include/libopenstm32/rcc.h
+++ b/include/libopenstm32/rcc.h
@@ -215,7 +215,7 @@
#define PWREN (1 << 28)
#define DACEN (1 << 29)
-/* --- RCC_BDCR values -------------------------------------------------- */
+/* --- RCC_BDCR values ----------------------------------------------------- */
#define LSEON (1 << 0)
#define LSERDY (1 << 1)
@@ -223,7 +223,7 @@
#define RTCEN (1 << 15)
#define BDRST (1 << 16)
-/* --- RCC_CSR values -------------------------------------------------- */
+/* --- RCC_CSR values ------------------------------------------------------ */
#define LSION (1 << 0)
#define LSIRDY (1 << 1)
@@ -235,6 +235,26 @@
#define WWDGRSTF (1 << 30)
#define LPWRRSTF (1 << 31)
+/* --- RCC_APB2RSTR values ------------------------------------------------- */
+
+/* Note: Bit marked (**) are reserved in "connectivity line" STM32s. */
+#define ADC3RST (1 << 15) /* (**) */
+#define USART1RST (1 << 14)
+#define TIM8RST (1 << 13) /* (**) */
+#define SPI1RST (1 << 12)
+#define TIM1RST (1 << 11)
+#define ADC2RST (1 << 10)
+#define ADC1RST (1 << 9)
+#define IOPGRST (1 << 8) /* (**) */
+#define IOPFRST (1 << 7) /* (**) */
+#define IOPERST (1 << 6)
+#define IOPDRST (1 << 5)
+#define IOPCRST (1 << 4)
+#define IOPBRST (1 << 3)
+#define IOPARST (1 << 2)
+#define AFIORST (1 << 0)
+
+
typedef enum {
PLL, HSE, HSI, LSE, LSI
} osc_t;