44 #define SYSFS_GPIO_DIR "/sys/class/gpio" 45 #define SYSFS_LED_DIR "/sys/class/leds" 46 #define POLL_TIMEOUT (3 * 1000) 62 int gpio_setup(
unsigned int gpio,
int out_flag);
63 int gpio_export(
unsigned int gpio);
64 int gpio_unexport(
unsigned int gpio);
65 int gpio_set_dir(
unsigned int gpio,
int out_flag);
66 int gpio_set_value(
unsigned int gpio,
int value);
67 int gpio_get_value(
unsigned int gpio,
unsigned int *value);
68 int gpio_set_edge(
unsigned int gpio,
char *edge);
69 int gpio_fd_open(
unsigned int gpio,
int writeFlag);
70 int gpio_fd_close(
int fd);
71 int gpio_write(
int fd,
int value);
72 int gpio_read(
int fd,
unsigned int *value);
73 int gpio_dismiss(
int fd,
unsigned int gpio);
75 int led_set_trigger(
unsigned int lednum,
const char *trigger);
Loading...