guowenxue
2021-04-23 7a0488541f68d1a9eb712a4eb5c6c36da150bc4a
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_  ----- */