From 0aac32a4bfa93e56f338f1b645e6180ba97c3fce Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Fri, 14 May 2021 14:53:25 +0300 Subject: [PATCH] Change C struct to c++ struct --- src/hal/gpio.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hal/gpio.h b/src/hal/gpio.h index 4bd4586..d475590 100644 --- a/src/hal/gpio.h +++ b/src/hal/gpio.h @@ -4,12 +4,11 @@ namespace hal { namespace gpio { - typedef struct - { + struct GPIO_TypeDef { volatile uint8_t PINx; volatile uint8_t DDRx; volatile uint8_t PORTx; - } GPIO_TypeDef; + }; enum class Mode { input = 0,