guowenxue
2024-06-25 8b691b645fb73d244b46dfa6f094ec299b202f67
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef __BOARD_COMMON_H__
#define __BOARD_COMMON_H__
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdarg.h>
#include "timeServer.h"
#include "cmsis_os.h"
#include "iwdg.h"
//#include "rtc.h"
#include "usart.h"
#include "tim.h"
#include "delay.h"
#include "adc.h"
#include "gpio.h"
#include "logger.h"
#include "errno.h"
#include "stm32_board.h"
#include "pinName-board.h"
#include "pinName-ioe.h"
#include "Commissioning.h"
#include "utilities.h"
#include "led.h"
 
#define CHECK_NULL(a)       if(NULL == a){ES800_ErrorPrint("ERROR: NULL POINTER AS ARGUMENT");return TH_FAILURE;} /* 检查参数是否为空 */
#define FREE_MEMORY(a)      if(NULL != a){free(a);a=NULL;} /* 释放指针 */
#define ARRAY_SIZE(a)       (sizeof(a) / sizeof((a)[0])) /* 计算数组大小 */
 
 
#define BOARD_NAME                       "RK-103"
#define HW_VERSION                       "V10"
#define DEVICE_TYPE             0x11
 
#define LOW_LEVEL 0
#define HIGH_LEVEL 1
 
#if 0
#pragma pack (1)
typedef struct
{
               /* 剩余电流 */
}SensorData;
#pragma pack ()
#endif
 
 
 
#endif /*End of __BOARD_COMMON_H__ */