diff options
Diffstat (limited to 'include/panic.h')
-rw-r--r-- | include/panic.h | 9 |
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); |