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
+22
View File
@@ -0,0 +1,22 @@
#ifndef LOCK_H
#define LOCK_H
#include "firmware.h"
// times below are multiplied by DELAY_TIME, in ms
#define LOCK_ARMED_TIMEOUT 1000
enum lockStates
{
LOCK_OFF,
LOCK_PREARM, // prevent arming while buttons held
LOCK_ARMED,
LOCK_ON_PRESSED, // to wait until button is released
LOCK_ON,
};
extern enum lockStates lockState;
void processLockState();
#endif