From 7b1008111baa95b4a8c3195f9f5a94bfdbe8d7d2 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sat, 16 Nov 2024 14:37:24 -0700 Subject: Move exc and nmi handlers to their own files. --- include/panic.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/panic.h (limited to 'include/panic.h') diff --git a/include/panic.h b/include/panic.h new file mode 100644 index 0000000..e52bfc8 --- /dev/null +++ b/include/panic.h @@ -0,0 +1,9 @@ +#pragma once + +#include + +/** flashes a code forever. */ +void flash_code(uint32_t code); + +/** Panics. Call this function when an error is unrrecoverable. */ +void panic(uint32_t code); -- cgit