#include #include #include #include #include #define SHUTDOWN_THRESHOLD 2048 /** * Contains the system idle loop. Checks for button presses, handles * standby/resume, reads data from the Modem and updates the Display. */ class System { private: uint16_t want_shutdown; void shutdown(void); public: System() { want_shutdown = 0; }; /** * System idle loop. Checks for button presses, handles * standby/resume, reads data from the Modem and updates the Display. * * It is recommended to run this function before going back to sleep * whenever the system is woken up by an interrupt. */ void loop(void); }; extern System rocket;