1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-20 04:43:21 +00:00

Inital attempt at fixing #9. Things are still broken. wait_for_edge no longer works on AP-EINT1/3, XIO will trigger only one on falling edge.

This commit is contained in:
Robert Wolterman
2016-07-10 14:56:40 -05:00
parent a9a2dbf862
commit db4493322d
4 changed files with 126 additions and 9 deletions

View File

@ -62,9 +62,14 @@ int gpio_get_direction(int gpio, unsigned int *value);
int gpio_set_value(int gpio, unsigned int value);
int gpio_get_value(int gpio, unsigned int *value);
int gpio_set_edge(int gpio, unsigned int edge);
int open_edge_file(int gpio);
int gpio_get_edge(int gpio);
int add_edge_detect(int gpio, unsigned int edge);
void remove_edge_detect(int gpio);
int add_edge_callback(int gpio, void (*func)(int gpio));
//int add_edge_callback(int gpio, void (*func)(int gpio));
int add_edge_callback(int gpio, int edge, void (*func)(int gpio));
int event_detected(int gpio);
int gpio_event_add(int gpio);
int gpio_event_remove(int gpio);