From e6e79ca02d323e9a10f115ade7ba6ac9c0d7a3f0 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Sat, 03 Aug 2019 18:17:33 +0800 Subject: [PATCH] Merge branch 'master' of ssh://master.iot-yun.club:2280/raspberrypi --- mqttd/hal/hal.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/mqttd/hal/hal.h b/mqttd/hal/hal.h index 027a078..37e1510 100644 --- a/mqttd/hal/hal.h +++ b/mqttd/hal/hal.h @@ -21,6 +21,7 @@ #include "ds18b20.h" #include "sht20.h" +#include "tsl2561.h" #define OFF 0 #define ON 1 @@ -37,7 +38,11 @@ extern int hal_init(hwconf_t *conf); extern void turn_relay(int cmd); extern int turn_led(int which, int cmd); -extern void init_infrared(int pin, int irq_type, void (*handler)(void)); +extern void init_infrared(int pin); extern void turn_beep(int times); +/* jitter_time: cancel jitter interval time + * Return value: 1(HIGH): Sombody detected 0(LOW): Nobody detected */ +extern int infrared_detect(int jitter_time); + #endif /* ----- #ifndef _HAL_H_ ----- */ -- Gitblit v1.9.1