diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-01-15 16:58:10 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-01-15 16:58:10 +0100 |
commit | ec9cfa2de32efc03355d420159025da8266a0d94 (patch) | |
tree | 1d8d66dda7a196f877d5a23a0f92c0ee265de3c3 /src/system.h | |
parent | ab36943fa7276d20f8b6e14ae2352db0a3daec04 (diff) |
move display and system into separate files
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h new file mode 100644 index 0000000..e944bb2 --- /dev/null +++ b/src/system.h @@ -0,0 +1,18 @@ +#include <avr/io.h> +#include <avr/interrupt.h> +#include <avr/wdt.h> +#include <util/delay.h> +#include <stdlib.h> + +#define SHUTDOWN_THRESHOLD 2048 + +class System { + private: + uint16_t want_shutdown; + public: + System() { want_shutdown = 0; }; + void loop(void); + void shutdown(void); +}; + +extern System rocket; |