mbv: minor cleanup
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user