guowenxue
2019-07-31 55f465be474c54edbceb3c6013ae629e0e0323d8
mqttd/hal/hal.h
@@ -21,6 +21,7 @@
#include "ds18b20.h"
#include "sht20.h"
#include "tsl2561.h"
#define OFF   0
#define ON    1
@@ -34,6 +35,14 @@
   LED_MAX,
};
int hal_init(hwconf_t *conf);
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);
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_  ----- */