Split firmware into separate files
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user