Also, implement a software watchdog to make sure that the main real-time modules are actually being run. Provide a panic facility, also giving blink codes to indicate the panic reason.
9 lines
164 B
C
9 lines
164 B
C
/* panic.h */
|
|
|
|
/* OMG we're all going to die!!!! */
|
|
|
|
void panic(unsigned int reason);
|
|
|
|
/* Panic code goes in the low 8 bits */
|
|
#define PANIC_WATCHDOG_TIMEOUT 0x100
|