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

View File

@@ -1,21 +1,14 @@
#include <cstdint>
#include "gpio.h"
#include "intc.h"
#include "interrupts.h"
#include "pol0.h"
#include "xuartlite.h"
extern "C" {
void BiosWozmon();
}
namespace {
struct Gpio {
volatile uint32_t data;
};
Gpio* leds = reinterpret_cast<Gpio*>(GPIO0_BASE);
Gpio* leds;
XUartLite uart0_inst;
XUartLite_Config uart0_config = {
@@ -52,9 +45,10 @@ void InitUarts() {
SetIrqEnabled(UART0_IRQN, true);
}
}
} // namespace
int main() {
leds = Gpio::Instance(GPIO0_BASE);
leds->data = 0xa0;
InitUarts();