summaryrefslogtreecommitdiff
path: root/platforms/stm32
diff options
context:
space:
mode:
authorKarl Palsson <karlp@etactica.com>2021-09-15 16:45:29 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2021-09-16 20:29:55 +0200
commit41d7823059a9e81a8cf6ec7ed65eba6959b39ee4 (patch)
tree00c64540d38824fa4d5f130a7b14a2712eb208a1 /platforms/stm32
parent891344a7f602e9431a52b89d32d3b5a8e2b0430c (diff)
timer: convert to new style and add WB
Stub f1 and f3 platform files have been added to preserve the collected timer base addresses, even though those platforms aren't actually supported in laks yet. Signed-off-by: Karl Palsson <karlp@etactica.com>
Diffstat (limited to 'platforms/stm32')
-rw-r--r--platforms/stm32/f1.yaml27
-rw-r--r--platforms/stm32/f3.yaml27
-rw-r--r--platforms/stm32/f4.yaml27
-rw-r--r--platforms/stm32/wb.yaml14
4 files changed, 95 insertions, 0 deletions
diff --git a/platforms/stm32/f1.yaml b/platforms/stm32/f1.yaml
new file mode 100644
index 0000000..8d4962b
--- /dev/null
+++ b/platforms/stm32/f1.yaml
@@ -0,0 +1,27 @@
+# This is incomplete, just preserving register addresses!
+- periph:
+ stm32_timer:
+ TIM1:
+ type: v1
+ offset: 0x40012c00
+ TIM2:
+ type: v1
+ offset: 0x40000000
+ TIM3:
+ type: v1
+ offset: 0x40000400
+ TIM4:
+ type: v1
+ offset: 0x40000800
+ TIM5:
+ type: v1
+ offset: 0x40000c00
+ TIM6:
+ type: v1
+ offset: 0x40001000
+ TIM7:
+ type: v1
+ offset: 0x40001400
+ TIM8:
+ type: v1
+ offset: 0x40013400
diff --git a/platforms/stm32/f3.yaml b/platforms/stm32/f3.yaml
new file mode 100644
index 0000000..8d4962b
--- /dev/null
+++ b/platforms/stm32/f3.yaml
@@ -0,0 +1,27 @@
+# This is incomplete, just preserving register addresses!
+- periph:
+ stm32_timer:
+ TIM1:
+ type: v1
+ offset: 0x40012c00
+ TIM2:
+ type: v1
+ offset: 0x40000000
+ TIM3:
+ type: v1
+ offset: 0x40000400
+ TIM4:
+ type: v1
+ offset: 0x40000800
+ TIM5:
+ type: v1
+ offset: 0x40000c00
+ TIM6:
+ type: v1
+ offset: 0x40001000
+ TIM7:
+ type: v1
+ offset: 0x40001400
+ TIM8:
+ type: v1
+ offset: 0x40013400
diff --git a/platforms/stm32/f4.yaml b/platforms/stm32/f4.yaml
index 72d4505..96731e4 100644
--- a/platforms/stm32/f4.yaml
+++ b/platforms/stm32/f4.yaml
@@ -29,6 +29,33 @@
size: 64k
periph:
+
+ stm32_timer:
+ TIM1:
+ type: v1
+ offset: 0x40010000
+ TIM2:
+ type: v1
+ offset: 0x40000000
+ TIM3:
+ type: v1
+ offset: 0x40000400
+ TIM4:
+ type: v1
+ offset: 0x40000800
+ TIM5:
+ type: v1
+ offset: 0x40000c00
+ TIM6:
+ type: v1
+ offset: 0x40001000
+ TIM7:
+ type: v1
+ offset: 0x40001400
+ TIM8:
+ type: v1
+ offset: 0x40010400
+
stm32_uart:
USART1:
offset: 0x40011000
diff --git a/platforms/stm32/wb.yaml b/platforms/stm32/wb.yaml
index 2214005..65eafea 100644
--- a/platforms/stm32/wb.yaml
+++ b/platforms/stm32/wb.yaml
@@ -28,6 +28,20 @@
size: 10k
periph:
+ stm32_timer:
+ TIM1:
+ type: v1
+ offset: 0x40012C00
+ TIM2:
+ type: v1
+ offset: 0x40000000
+ TIM16:
+ type: v1
+ offset: 0x40014400
+ TIM17:
+ type: v1
+ offset: 0x40014800
+
stm32_uart:
USART1:
type: v2