2019-11-29 02:05:30 -07:00
|
|
|
#ifndef __GPIO_H_INCLUDED
|
|
|
|
#define __GPIO_H_INCLUDED
|
|
|
|
|
2019-12-01 14:34:57 -07:00
|
|
|
#define STATE_BUTTON1 (1 << 0)
|
|
|
|
#define STATE_BUTTON2 (1 << 1)
|
|
|
|
#define STATE_BUTTON3 (1 << 2)
|
|
|
|
#define STATE_BUTTON4 (1 << 3)
|
|
|
|
|
|
|
|
#define BACKLIGHT_MAX 1023
|
|
|
|
|
2019-11-29 02:05:30 -07:00
|
|
|
extern int Gpio_setup(void);
|
|
|
|
extern void Gpio_cleanup(void);
|
2019-12-01 01:02:08 -07:00
|
|
|
extern int Gpio_read_buttons(void);
|
2019-12-01 14:34:57 -07:00
|
|
|
extern void Gpio_set_backlight(unsigned level);
|
2019-11-29 02:05:30 -07:00
|
|
|
|
|
|
|
#endif /* __GPIO_H_INCLUDED */
|