mbv: minor cleanup
This commit is contained in:
11
mbv/hal/gpio.h
Normal file
11
mbv/hal/gpio.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
struct Gpio {
|
||||
volatile uint32_t data;
|
||||
|
||||
static Gpio* Instance(uint32_t base) {
|
||||
return reinterpret_cast<Gpio*>(base);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user