HomeAut
button.h
1 /*******************************************************************************
2  * Purpose:
3  ******************************************************************************/
4 
5 #ifndef BUTTON_H_
6 #define BUTTON_H_
7 
8 
9 /*------------------------------------------------------------------------------
10  * Includes
11  *----------------------------------------------------------------------------*/
12 #include "include.h"
13 
14 
15 /*------------------------------------------------------------------------------
16  * Macros & definitions
17  *----------------------------------------------------------------------------*/
18 
19 
20 /*------------------------------------------------------------------------------
21  * Type definitions
22  *----------------------------------------------------------------------------*/
23 typedef enum {
24  PressedButton_Pressed,
25  PressedButton_Up,
26  PressedButton_Down,
27  PressedButton_Right,
28  PressedButton_Left
29 
30 } BUTTON_PressedButtonType;
31 
32 
33 
34 /*------------------------------------------------------------------------------
35  * Global variables
36  *----------------------------------------------------------------------------*/
37 extern volatile uint8_t BUTTON_Clicked;
38 
39 /*------------------------------------------------------------------------------
40  * Local variables
41  *----------------------------------------------------------------------------*/
42 
43 
44 /*------------------------------------------------------------------------------
45  * Local function declarations
46  *----------------------------------------------------------------------------*/
47 
48 
49 /*------------------------------------------------------------------------------
50  * Global function declarations
51  *----------------------------------------------------------------------------*/
52 void BUTTON_Init ( void );
53 //void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin);
54 
55 
56 
57 #endif /* TEMPLATE_H_ */