Split firmware into separate files

This commit is contained in:
2019-02-17 22:45:02 -07:00
parent 0ab2ac086f
commit 79c76a57aa
14 changed files with 798 additions and 683 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef COMM_H
#define COMM_H
#include "firmware.h"
// times below are multiplied by DELAY_TIME, in ms
#define COMM_LOCK_IDLE_TIME 50
#define COMM_CARD_IDLE_TIME 1000
#define COMM_INFO_IDLE_TIME 3000
enum commStates
{
COMM_INIT,
COMM_IDLE,
COMM_LOCK,
COMM_CARD,
COMM_INFO,
};
extern enum commStates commState;
extern char wifiMACAddr[20];
extern const char *LOCKOUT_FIRMWARE_VERSION;
extern const String SOCKET_URL;
extern const String CARD_URL;
extern const String INFOLOG_URL;
extern const String UPDATE_URL;
void postState();
void getCards();
void postInfolog();
void processCommState();
#endif