The unified diff between revisions [d0420ebd..] and [dc88787e..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'panic.h'
# # old_revision [d0420ebd87c820e33a32b29727989516e15980a8] # new_revision [dc88787ecd1d574feba045763baed2a7651ff33d] # # add_file "panic.h" # content [b263e2768b03feb4970bdeedf75a8ff0de240894] # ============================================================ --- /dev/null +++ panic.h b263e2768b03feb4970bdeedf75a8ff0de240894 @@ -0,0 +1,16 @@ +/* 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 +#define PANIC_SENSOR_FAIL 0x200 + +#ifdef PANIC_CHECKPOINT +extern unsigned int checkpoint; +#define CHECKPOINT(x) do { checkpoint = (x); } while (0) +#else +#define CHECKPOINT(x) +#endif