From d5fbedc24fdd41e7c30b2f9239f666f33893e065 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 16 Sep 2021 23:50:26 +0200 Subject: gpio: Generate instances from platform spec. --- platforms/stm32/f1.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'platforms/stm32/f1.yaml') diff --git a/platforms/stm32/f1.yaml b/platforms/stm32/f1.yaml index ed97844..a71a319 100644 --- a/platforms/stm32/f1.yaml +++ b/platforms/stm32/f1.yaml @@ -1,5 +1,21 @@ # This is incomplete, just preserving register addresses! - periph: + stm32_gpio: + GPIOA: + offset: 0x40010800 + type: v1 + GPIOB: + offset: 0x40010c00 + type: v1 + GPIOC: + offset: 0x40011000 + type: v1 + GPIOD: + offset: 0x40011400 + type: v1 + GPIOE: + offset: 0x40011800 + type: v1 stm32_timer: TIM1: offset: 0x40012c00 -- cgit v1.2.3