From 45e62dbd9e964c74b24f7fcadad9b418f117e008 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Thu, 27 Jun 2019 15:11:42 +0800 Subject: [PATCH] update mqttd, add hardware configured in configure files --- mqttd/hal/hal.h | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/mqttd/hal/hal.h b/mqttd/hal/hal.h index 7855cdd..5788ff8 100644 --- a/mqttd/hal/hal.h +++ b/mqttd/hal/hal.h @@ -17,12 +17,23 @@ #include <wiringPi.h> #include "lylib/logger.h" +#include "etc/conf.h" -#include "led.h" -#include "relay.h" #include "ds18b20.h" #include "sht20.h" -int hal_init(void); +#define OFF 0 +#define ON 1 + +/* Three LEDs code */ +enum +{ + LED_R = 0, + LED_G, + LED_B, + LED_MAX, +}; + +int hal_init(hwconf_t *conf); #endif /* ----- #ifndef _HAL_H_ ----- */ -- Gitblit v1.9.1