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,12 +1,11 @@
#include <cstdint>
#include "gpio.h"
#include "pol0.h"
struct Gpio {
volatile uint32_t data;
};
namespace {
#define gpio0 ((Gpio*)GPIO0_BASE)
Gpio* gpio0;
void sleep(int ms) {
for (int m = 0; m < ms; m++) {
@@ -16,7 +15,10 @@ void sleep(int ms) {
}
}
} // namespace
int main() {
gpio0 = Gpio::Instance(GPIO0_BASE);
int out = 0;
while (1) {