14 lines
347 B
C
14 lines
347 B
C
|
#ifndef _BUTTON_H
|
||
|
#define _BUTTON_H
|
||
|
|
||
|
enum BUTTON_EVENTS {
|
||
|
NONE, WAIT_FOR_RELEASE_1, WAIT_FOR_SECOND, WAIT_FOR_RELEASE_2, // Intermediate states
|
||
|
EV_PRESS, EV_DOUBLEPRESS, EV_LONGPRESS, EV_DOUBLELONGPRESS // Button events
|
||
|
};
|
||
|
|
||
|
int button_event(enum BUTTON_EVENTS ev);
|
||
|
extern void button_systick_cb();
|
||
|
void button_systick_cb();
|
||
|
|
||
|
#endif // _BUTTON_H
|