| #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__ */  | 
|   |