summaryrefslogtreecommitdiff
path: root/src/system.h
blob: e944bb2301ea7dfef0bfb07eaaf892c19a8ecfa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;