From 99ecb3dc2f1c7b093e89e50c8f50718541da59ea Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 21 Apr 2021 22:23:53 +0800 Subject: [PATCH] update iotd.conf --- iotd/hal/gpio.h | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/iotd/hal/gpio.h b/iotd/hal/gpio.h index 2a12d84..455960f 100644 --- a/iotd/hal/gpio.h +++ b/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 @@ -46,10 +43,7 @@ /* 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); +void gpio_out(char *name, char *cmd); /* Return value: 0(LOW): Nobody detected, !0: Which infrared detect incoming */ extern int infrared_detect(void); -- Gitblit v1.9.1