Rev 49 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 49 | Rev 50 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | #define INC_SWITCHES_H_ |
9 | #define INC_SWITCHES_H_ |
10 | 10 | ||
11 | #define MAX_DIALS 2 |
11 | #define MAX_DIALS 2 |
12 | #define MAX_PUSHBUTTONS 2 |
12 | #define MAX_PUSHBUTTONS 2 |
13 | 13 | ||
14 | static const int DEBOUNCE_TIME = 10; |
14 | #if defined __cplusplus |
15 | static const int FAST_DEBOUNCE_TIME = 1; |
15 | extern "C" { |
- | 16 | #endif |
|
- | 17 | ||
16 | extern volatile int push_pos[MAX_PUSHBUTTONS]; |
18 | extern volatile int push_pos[MAX_PUSHBUTTONS]; |
17 | extern volatile int sw_count[MAX_PUSHBUTTONS]; //< debounced switch state |
19 | extern volatile int sw_count[MAX_PUSHBUTTONS]; //< debounced switch state |
18 | 20 | ||
19 | extern volatile int dial_pos[MAX_DIALS]; |
21 | extern volatile int dial_pos[MAX_DIALS]; |
20 | extern volatile int dial_count[MAX_DIALS]; |
22 | extern volatile int dial_count[MAX_DIALS]; |
Line 22... | Line 24... | ||
22 | 24 | ||
23 | extern void reset_dial(int dial,int value); |
25 | extern void reset_dial(int dial,int value); |
24 | 26 | ||
25 | extern void HandleSwitches(void); |
27 | extern void HandleSwitches(void); |
26 | 28 | ||
- | 29 | #if defined __cplusplus |
|
- | 30 | } |
|
- | 31 | #endif |
|
27 | 32 | ||
28 | 33 | ||
29 | #endif /* INC_SWITCHES_H_ */ |
34 | #endif /* INC_SWITCHES_H_ */ |