Change C struct to c++ struct

pull/9/head
Alex Voinea 2021-05-14 14:53:25 +03:00
parent 5b2a7d0cf2
commit 0aac32a4bf
1 changed files with 2 additions and 3 deletions

View File

@ -4,12 +4,11 @@
namespace hal { namespace hal {
namespace gpio { namespace gpio {
typedef struct struct GPIO_TypeDef {
{
volatile uint8_t PINx; volatile uint8_t PINx;
volatile uint8_t DDRx; volatile uint8_t DDRx;
volatile uint8_t PORTx; volatile uint8_t PORTx;
} GPIO_TypeDef; };
enum class Mode { enum class Mode {
input = 0, input = 0,