From aa38e5c1f48e31213ee349aa5cd6f06c85bda70d Mon Sep 17 00:00:00 2001 From: android <android@lingyun.com> Date: Tue, 25 Jun 2024 21:49:39 +0800 Subject: [PATCH] Add GD32F103RCT6 ADC converter board SDK source code --- mcu_sdk/gd32f103/rk_eFire/System/Inc/board_common.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/mcu_sdk/gd32f103/rk_eFire/System/Inc/board_common.h b/mcu_sdk/gd32f103/rk_eFire/System/Inc/board_common.h new file mode 100644 index 0000000..54acf29 --- /dev/null +++ b/mcu_sdk/gd32f103/rk_eFire/System/Inc/board_common.h @@ -0,0 +1,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__ */ + -- Gitblit v1.9.1