Rev 49 |
Blame |
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
#if defined __cplusplus
extern "C" {
#endif
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);
#if defined __cplusplus
}
#endif
#endif /* INC_SWITCHES_H_ */