Subversion Repositories DashDisplay

Rev

Rev 28 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28 Rev 44
Line 6... Line 6...
6
 */
6
 */
7
 
7
 
8
#ifndef INC_SWITCHES_H_
8
#ifndef INC_SWITCHES_H_
9
#define INC_SWITCHES_H_
9
#define INC_SWITCHES_H_
10
 
10
 
11
#define MAX_SWITCHES 6
-
 
12
#define MAX_DIALS 2
11
#define MAX_DIALS 2
13
#define MAX_PUSHBUTTONS 2
12
#define MAX_PUSHBUTTONS 2
14
 
13
 
15
#define DEBOUNCE_TIME 10
14
static const int DEBOUNCE_TIME = 10;
16
extern volatile int dial_pos[MAX_DIALS];
15
static const int FAST_DEBOUNCE_TIME = 1;
17
extern volatile int push_pos[MAX_PUSHBUTTONS];
16
extern volatile int push_pos[MAX_PUSHBUTTONS];
-
 
17
extern volatile int sw_count[MAX_PUSHBUTTONS]; //< debounced switch state
-
 
18
 
-
 
19
extern volatile int dial_pos[MAX_DIALS];
-
 
20
extern volatile int dial_count[MAX_DIALS];
-
 
21
 
18
 
22
 
19
extern void reset_dial(int dial,int value);
23
extern void reset_dial(int dial,int value);
20
 
24
 
21
extern void HandleSwitches(void);
25
extern void HandleSwitches(void);
22
 
26