From 041d75012d423ef2e51bdf0cdaa8cf4dfc82ddcf Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Mon, 17 May 2021 17:09:00 +0300 Subject: [PATCH] Add all possible ports to the AVR GPIO hal --- src/hal/gpio.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hal/gpio.h b/src/hal/gpio.h index 7b974e8..4d473bf 100644 --- a/src/hal/gpio.h +++ b/src/hal/gpio.h @@ -75,8 +75,14 @@ namespace gpio { } } +#define GPIOA ((hal::gpio::GPIO_TypeDef *)&PINA) #define GPIOB ((hal::gpio::GPIO_TypeDef *)&PINB) #define GPIOC ((hal::gpio::GPIO_TypeDef *)&PINC) #define GPIOD ((hal::gpio::GPIO_TypeDef *)&PIND) #define GPIOE ((hal::gpio::GPIO_TypeDef *)&PINE) #define GPIOF ((hal::gpio::GPIO_TypeDef *)&PINF) +#define GPIOG ((hal::gpio::GPIO_TypeDef *)&PING) +#define GPIOH ((hal::gpio::GPIO_TypeDef *)&PINH) +#define GPIOJ ((hal::gpio::GPIO_TypeDef *)&PINJ) +#define GPIOK ((hal::gpio::GPIO_TypeDef *)&PINK) +#define GPIOL ((hal::gpio::GPIO_TypeDef *)&PINL)