
12 Aug
2011
12 Aug
'11
8:42 p.m.
On Friday, August 12, 2011 04:11:22 Joe Hershberger wrote:
+int gpio_request(int gp, const char *label); +void gpio_free(int gp); +int gpio_direction_input(int gp); +int gpio_direction_output(int gp, int value); +int gpio_get_value(int gp); +void gpio_set_value(int gp, int value);
please use "unsigned gpio". this is what linux does and what most implementations should be doing (since sane people will pull from linux).
+void gpio_toggle_value(int gp);
this is not currently part of the generic gpio api. this should stay in arm's asm/gpio.h for now, or not implement it at all. -mike