const cpu = @import("cpu.zig"); const gpio = @import("gpio.zig"); const rcc: *[39]u32 = @ptrFromInt(0x40021000); const gpioa = gpio.gpioa; export fn _start() callconv(.C) noreturn { cpu.interrupt_disable(); rcc[19] |= 1; // gpioaen gpioa.set_mode(5, .output); while (true) { gpioa.toggle(5); } } export fn fault_handler() callconv(.C) void { while (true) {} }