TTK4155 Ping-pong project
button_driver.h
Go to the documentation of this file.
1 
4 #ifndef BUTTON_DRIVER_H_
5 #define BUTTON_DRIVER_H_
6 
7 typedef enum {
11  } button_t;
12 
13 uint8_t button_read(button_t button);
14 int button_init(void);
15 
16 
17 #endif /* BUTTON_DRIVER_H_ */
button_t
Definition: button_driver.h:7
uint8_t button_read(button_t button)
Function to read joystick button or touch button push.
Definition: button_driver.c:21
Definition: button_driver.h:9
int button_init(void)
Initialize button registers.
Definition: button_driver.c:11
Definition: button_driver.h:8
Definition: button_driver.h:10