summaryrefslogtreecommitdiff
path: root/rcc
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2021-09-19 23:56:37 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2022-01-26 23:40:29 +0100
commit39a5d7c632ec25bcaaa6f296effe719bbc62a6ed (patch)
tree872aaa13291261e3e5acda2cb097159f217981ea /rcc
parent267c99850a0795b1563725c33674f2c62f6942a8 (diff)
stm32l1: initial support, incomplete
Diffstat (limited to 'rcc')
-rw-r--r--rcc/rcc_reg.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/rcc/rcc_reg.h b/rcc/rcc_reg.h
index 4a1e881..2612580 100644
--- a/rcc/rcc_reg.h
+++ b/rcc/rcc_reg.h
@@ -111,6 +111,24 @@ struct RCC_reg_l0_t {
volatile uint32_t CSR;
};
+struct RCC_reg_l1_t {
+ volatile uint32_t CR;
+ volatile uint32_t ICSCR;
+ volatile uint32_t CFGR;
+ volatile uint32_t CIR;
+ volatile uint32_t AHBRSTR;
+ volatile uint32_t APB2RSTR;
+ volatile uint32_t APB1RSTR;
+ volatile uint32_t AHBENR;
+ volatile uint32_t APB2ENR;
+ volatile uint32_t APB1ENR;
+ // Use "standard" _SM_ names, not _LP_ as in Refman.
+ volatile uint32_t AHBSMENR;
+ volatile uint32_t APB2SMENR;
+ volatile uint32_t APB1SMENR;
+ volatile uint32_t CSR;
+};
+
struct RCC_reg_wb_t {
volatile uint32_t CR;
volatile uint32_t ICSCR;