mbv: minor cleanup
This commit is contained in:
12
mbv/hal/bios.h
Normal file
12
mbv/hal/bios.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
extern "C" {
|
||||
|
||||
uint8_t BiosUartRead();
|
||||
void BiosUartWrite(uint8_t);
|
||||
void BiosWozmon();
|
||||
void BiosUartWriteNibble(uint8_t);
|
||||
|
||||
}
|
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