gpio.h 327 B

1234567891011121314151617181920212223
  1. #ifndef _GPIO_H
  2. #define _GPIO_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. void gpio_request(unsigned gpio);
  7. void gpio_direction_output(unsigned gpio, int value);
  8. void gpio_direction_input(unsigned gpio);
  9. void gpio_set_value(unsigned gpio, int value);
  10. int gpio_get_value(unsigned gpio);
  11. #ifdef __cplusplus
  12. }
  13. #endif
  14. #endif