summaryrefslogtreecommitdiff
path: root/rcc
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2022-01-12 22:53:23 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2022-01-26 23:40:29 +0100
commitedfce5a5bfbe14d568ef706c8a8ecc8ca3a6a808 (patch)
treec4307bdf5f651933fd55fcc54718413b7a1e168c /rcc
parent606ea7eb8decc72230e885410734777bda02ea96 (diff)
stm32l4: add basic platform file
While checking STM32WB, this was easy enough to just transcribe while working. Untested on real hardware. Signed-off-by: Karl Palsson <karlp@tweak.net.au>
Diffstat (limited to 'rcc')
-rw-r--r--rcc/stm32_flash.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/rcc/stm32_flash.h b/rcc/stm32_flash.h
index 8adc3a3..ab88399 100644
--- a/rcc/stm32_flash.h
+++ b/rcc/stm32_flash.h
@@ -37,6 +37,21 @@ struct STM32_FLASH_reg_l0_t {
volatile uint32_t WRPROT;
};
+struct STM32_FLASH_reg_l4_t {
+ volatile uint32_t ACR;
+ volatile uint32_t PDKEYR;
+ volatile uint32_t KEYR;
+ volatile uint32_t OPTKEYR;
+ volatile uint32_t SR;
+ volatile uint32_t CR;
+ volatile uint32_t ECCR;
+ volatile uint32_t OPTR;
+ volatile uint32_t PCROP1SR;
+ volatile uint32_t PCROP1ER;
+ volatile uint32_t WRP1AR;
+ volatile uint32_t WRP1BR;
+};
+
struct STM32_FLASH_reg_wb_t {
volatile uint32_t ACR;
volatile uint32_t KEYR;