guowenxue
2021-04-22 2db120f65b048e309e232d454b732a92eb1688f9
iotd/hal/gpio.h
@@ -16,9 +16,6 @@
#include <gpiod.h>
#define OFF   0
#define ON    1
#define GPIO_MAXOUT         8
#define GPIO_MAXIN          4
@@ -44,12 +41,8 @@
extern int gpio_init(gpio_t *gpio);
extern void gpio_term(void);
/* turn which light on/off */
extern void turn_light(int which, int cmd);
/* turn which led on/off */
extern void turn_led(int which, int cmd);
extern void gpio_out(char *name, char *cmd);
/* Return value: 0(LOW): Nobody detected, !0: Which infrared detect incoming */
extern int infrared_detect(void);