You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
367 B
23 lines
367 B
5 years ago
|
#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
|