From cbae784c040317daf1b9f9f8d7e6fdb63736283f Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 17 Aug 2021 01:53:05 +0800
Subject: [PATCH] Add libgpiod build shell script

---
 iotd/hal/gpio.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/iotd/hal/gpio.h b/iotd/hal/gpio.h
index 2623e72..804916a 100644
--- a/iotd/hal/gpio.h
+++ b/iotd/hal/gpio.h
@@ -45,10 +45,14 @@
 /* turn which light on/off */
 extern void gpio_out(char *name, char *cmd);
 
+
+/*thread work body to turn light $name on for some seconds */
+void *light_on_worker(void *arg);
+
 /* Return value: 0(LOW): Nobody detected, !0: Which infrared detect incoming */
 #define FLAG_INFRARED_INDOOR          (1<<0)
 #define FLAG_INFRARED_HALLWAY         (1<<1)
-extern int infrared_detect(int interval);
+extern int infrared_detect(void);
 
 #endif   /* ----- #ifndef _GPIO_H_  ----- */
 

--
Gitblit v1.9.1