You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
microzig/tests/interrupt.zig

20 lines
409 B
Zig

const micro = @import("microzig");
// this program will only work on arm microcontrollers, and it might not
// actually run correctly at first, it's just a test for declaring interrupts
// right now.
pub const panic = micro.panic;
pub const interrupts = struct {
pub fn SysTick() void {
@panic("hit systick!");
}
};
pub fn main() void {
while (true) {
micro.cpu.wfi();
}
}