aboutsummaryrefslogtreecommitdiff
path: root/include/panic.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-11-16 14:37:24 -0700
committerJosh Rahm <joshuarahm@gmail.com>2024-11-16 14:41:04 -0700
commit7b1008111baa95b4a8c3195f9f5a94bfdbe8d7d2 (patch)
tree75801992d44c8f96a2c09285ea3b5a869f70d90f /include/panic.h
parent6bac8ebe38197babcc1d410e3f5f48792e83e400 (diff)
downloadch573-7b1008111baa95b4a8c3195f9f5a94bfdbe8d7d2.tar.gz
ch573-7b1008111baa95b4a8c3195f9f5a94bfdbe8d7d2.tar.bz2
ch573-7b1008111baa95b4a8c3195f9f5a94bfdbe8d7d2.zip
Move exc and nmi handlers to their own files.
Diffstat (limited to 'include/panic.h')
-rw-r--r--include/panic.h9
1 files changed, 9 insertions, 0 deletions
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 <stdint.h>
+
+/** flashes a code forever. */
+void flash_code(uint32_t code);
+
+/** Panics. Call this function when an error is unrrecoverable. */
+void panic(uint32_t code);