summaryrefslogtreecommitdiff
path: root/exti
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 /exti
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 'exti')
-rw-r--r--exti/stm32_exti.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/exti/stm32_exti.h b/exti/stm32_exti.h
index 525a483..f15c0a1 100644
--- a/exti/stm32_exti.h
+++ b/exti/stm32_exti.h
@@ -2,6 +2,21 @@
#include <mmio/mmio.h>
+struct STM32_EXTI_reg_l4_t {
+ volatile uint32_t IMR1;
+ volatile uint32_t EMR1;
+ volatile uint32_t RTSR1;
+ volatile uint32_t FTSR1;
+ volatile uint32_t SWIER1;
+ volatile uint32_t PR1;
+ volatile uint32_t IMR2;
+ volatile uint32_t EMR2;
+ volatile uint32_t RTSR2;
+ volatile uint32_t FTSR2;
+ volatile uint32_t SWIER2;
+ volatile uint32_t PR2;
+};
+
struct STM32_EXTI_reg_wb_t {
volatile uint32_t RTSR1;
volatile uint32_t FTSR1;