Go to most recent revision | Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 2 | mjames | 1 | /* |
| 2 | * switches.h |
||
| 3 | * |
||
| 4 | * Created on: 6 Aug 2016 |
||
| 5 | * Author: Mike |
||
| 6 | */ |
||
| 7 | |||
| 8 | #ifndef INC_SWITCHES_H_ |
||
| 9 | #define INC_SWITCHES_H_ |
||
| 10 | |||
| 11 | #define MAX_DIALS 2 |
||
| 12 | #define MAX_PUSHBUTTONS 2 |
||
| 13 | |||
| 50 | mjames | 14 | #if defined __cplusplus |
| 15 | extern "C" { |
||
| 16 | #endif |
||
| 17 | |||
| 2 | mjames | 18 | extern volatile int push_pos[MAX_PUSHBUTTONS]; |
| 44 | mjames | 19 | extern volatile int sw_count[MAX_PUSHBUTTONS]; //< debounced switch state |
| 2 | mjames | 20 | |
| 44 | mjames | 21 | extern volatile int dial_pos[MAX_DIALS]; |
| 22 | extern volatile int dial_count[MAX_DIALS]; |
||
| 23 | |||
| 62 | mjames | 24 | extern void InitSwitches(void); |
| 44 | mjames | 25 | |
| 14 | mjames | 26 | extern void reset_dial(int dial,int value); |
| 2 | mjames | 27 | |
| 28 | extern void HandleSwitches(void); |
||
| 29 | |||
| 62 | mjames | 30 | |
| 50 | mjames | 31 | #if defined __cplusplus |
| 32 | } |
||
| 33 | #endif |
||
| 2 | mjames | 34 | |
| 35 | |||
| 36 | #endif /* INC_SWITCHES_H_ */ |