Add ARM basic bootloader build

This commit is contained in:
2022-05-07 23:00:22 -07:00
parent 47059c1c15
commit d83d42fb60
4 changed files with 100 additions and 0 deletions

13
arm/main.cc Normal file
View File

@@ -0,0 +1,13 @@
#include <cstdint>
struct Gpio {
volatile uint32_t data;
};
#define gpio0 ((Gpio*) 0x40000000)
int main() {
gpio0->data = 42;
while (true) {}
}