/********************************************************************************* * Copyright: (C) 2019 LingYun IoT System Studio * All rights reserved. * * Filename: hal.h * Description: This file is HAL(Hardware Abstract Layer) initial functions * * Version: 1.0.0(2019年06月24日) * Author: Guo Wenxue * ChangeLog: 1, Release initial version on "2019年06月24日 23时46分47秒" * ********************************************************************************/ #ifndef _HAL_H_ #define _HAL_H_ #include #include "lylib/logger.h" #include "etc/conf.h" #include "ds18b20.h" #include "sht20.h" #define OFF 0 #define ON 1 /* Three LEDs code */ enum { LED_R = 0, LED_G, LED_B, LED_MAX, }; extern int hal_init(hwconf_t *conf); extern void turn_relay(int cmd); extern int turn_led(int which, int cmd); #endif /* ----- #ifndef _HAL_H_ ----- */