pslockout/firmware/lock.h

23 lines
367 B
C
Raw Normal View History

2019-02-18 05:45:02 +00:00
#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