guowenxue
2019-06-26 ffa48d2a646d1deb92eaf4e13ed17d5da9bfda65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*********************************************************************************
 *      Copyright:  (C) 2019 LingYun IoT System Studio
 *                  All rights reserved.
 *
 *       Filename:  hal.c
 *    Description:  This file is HAL(Hardware Abstract Layer) initial functions
 *                 
 *        Version:  1.0.0(2019年06月24日)
 *         Author:  Guo Wenxue <guowenxue@gmail.com>
 *      ChangeLog:  1, Release initial version on "2019年06月24日 23时46分47秒"
 *                 
 ********************************************************************************/
 
#include "hal.h"
 
int hal_init(void)
{
    init_led(); 
    
    if( sht2x_init() < 0 )
    {
        log_err("Initialise SHT20 failure\n");
        return -2;
    } 
    
    return 0;
}