-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Hackiebox.h
85 lines (68 loc) · 1.75 KB
/
Hackiebox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef Hackiebox_h
#define Hackiebox_h
#include "BaseHeader.h"
#include <ThreadController.h>
#include <hw_ints.h>
#include <driverlib/wdt.h>
#include <driverlib/rom_map.h>
#include <driverlib/prcm.h>
#include "BoxAccelerometer.h"
#include "BoxBattery.h"
#include "BoxButtonEars.h"
#include "BoxCLI.h"
#include "BoxDAC.h"
#include "BoxEvents.h"
#include "BoxI2C.h"
#include "BoxLEDs.h"
#include "BoxPlayer.h"
#include "BoxPower.h"
#include "BoxRFID.h"
#include "BoxSD.h"
#include "BoxTonies.h"
#include "WrapperWiFi.h"
#include "WrapperWebServer.h"
#include "LogStreamMulti.h"
#include "LogStreamSd.h"
#include "LogStreamSse.h"
class Hackiebox {
public:
void
setup(),
loop();
bool
watchdog_start(uint8_t timeoutS),
watchdog_isFed();
void
watchdog_stop(),
watchdog_feed(),
watchdog_unfeed();
bool inDelayTask;
void delayTask(uint16_t millis);
void delayTaskWork(uint16_t millis);
ThreadController threadController;
BoxAccelerometer boxAccel;
BoxBattery boxBattery;
BoxButtonEars boxEars;
BoxCLI boxCLI;
BoxDAC boxDAC;
BoxI2C boxI2C;
BoxLEDs boxLEDs;
BoxPower boxPower;
BoxPlayer boxPlayer;
BoxRFID boxRFID;
BoxSD boxSD;
BoxTonies boxTonie;
WrapperWiFi boxWiFi;
WrapperWebServer webServer;
LogStreamMulti logStreamMulti;
LogStreamSd logStreamSd;
LogStreamSse logStreamSse;
bool watchdog_enabled;
private:/*
typedef void (*fAPPWDTDevCallbk)();
void
watchdog_handler();*/
bool _watchdog_fed;
};
extern Hackiebox Box;
#endif