Change C struct to c++ struct
parent
5b2a7d0cf2
commit
0aac32a4bf
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue