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

Initial work at refactoring the edge detection code I added to get it working

This commit is contained in:
Robert Wolterman
2016-07-10 22:00:01 -05:00
parent a4dd1558f0
commit bff65d346d
2 changed files with 58 additions and 41 deletions

View File

@ -61,14 +61,15 @@ int gpio_set_direction(int gpio, unsigned int in_flag);
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 fd_lookup(int gpio);
int open_value_file(int gpio);
int gpio_set_edge(int gpio, unsigned int edge);
int fde_lookup(int gpio);
int open_edge_file(int gpio);
int gpio_set_edge(int gpio, unsigned int edge);
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, int edge, void (*func)(int gpio));
int event_detected(int gpio);
int gpio_event_add(int gpio);