Rev 28 |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
/*
* switches.h
*
* Created on: 6 Aug 2016
* Author: Mike
*/
#ifndef INC_SWITCHES_H_
#define INC_SWITCHES_H_
#define MAX_DIALS 2
#define MAX_PUSHBUTTONS 2
static const int DEBOUNCE_TIME = 10;
static const int FAST_DEBOUNCE_TIME = 1;
extern volatile int push_pos[MAX_PUSHBUTTONS];
extern volatile int sw_count[MAX_PUSHBUTTONS]; //< debounced switch state
extern volatile int dial_pos[MAX_DIALS];
extern volatile int dial_count[MAX_DIALS];
extern void reset_dial(int dial,int value);
extern void HandleSwitches(void);
#endif /* INC_SWITCHES_H_ */