mbv: minor cleanup

This commit is contained in:
2025-06-23 15:20:36 -07:00
parent 73edb77577
commit af768cbb09
8 changed files with 39 additions and 198 deletions

12
mbv/hal/bios.h Normal file
View 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
View 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);
}
};