summaryrefslogtreecommitdiff
path: root/gpio.h
blob: 1f66586ae5b67697573b8709a6acc28bce7621df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef GPIO_H
#define GPIO_H

#define ENABLE_RIGHT_DISPLAY    4
#define ENABLE_LEFT_DISPLAY     5

#define GPIO_LOWBATTERY         88
#define BUTTON_SPECIAL          89
#define BUTTON_PREVBOOK         91
#define BUTTON_PREVPAGE         92
#define GPIO_SHUTDOWN           93
#define BUTTON_NEXTPAGE         95
#define BUTTON_NEXTCHAPTER      96
#define BUTTON_NEXTBOOK         100

int gpio_get(int port);
void gpio_set(int port);
void gpio_clear(int port);
void gpio_init(void);
void gpio_watch(int port, void (*fn)(int));

#endif