Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
remove hal.uart.panic
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnite committed Oct 8, 2022
1 parent e9af302 commit 144d557
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/hal/uart.zig
Expand Up @@ -249,16 +249,3 @@ pub fn log(
uart.print(prefix ++ format ++ "\r\n", .{ seconds, microseconds } ++ args) catch {};
}
}

pub fn panic(
message: []const u8,
_: ?*std.builtin.StackTrace,
_: ?usize,
) noreturn {
if (uart_logger) |writer| {
writer.print("PANIC: {s}\r\n", .{message}) catch {};
}

@breakpoint();
while (true) {}
}

0 comments on commit 144d557

Please sign in to comment.