Add ARM basic bootloader build
This commit is contained in:
13
arm/main.cc
Normal file
13
arm/main.cc
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <cstdint>
|
||||
|
||||
struct Gpio {
|
||||
volatile uint32_t data;
|
||||
};
|
||||
|
||||
#define gpio0 ((Gpio*) 0x40000000)
|
||||
|
||||
int main() {
|
||||
gpio0->data = 42;
|
||||
|
||||
while (true) {}
|
||||
}
|
||||
Reference in New Issue
Block a user