fix:修改RS485通讯引脚

RS485通讯引脚改为串口2,引脚:RX:PB05 TX:PB04 RS485_DR:PB03
This commit is contained in:
caocong
2026-02-25 10:29:57 +08:00
commit 2815979c8a
77 changed files with 16491 additions and 0 deletions

37
Source/includes.h Normal file
View File

@@ -0,0 +1,37 @@
#ifndef _INCLUDES_H_
#define _INCLUDES_H_
#include "apt32f102.h"
#include "apt32f102_bt.h"
#include "apt32f102_gpio.h"
#include "apt32f102_ifc.h"
#include "apt32f102_lpt.h"
#include "apt32f102_syscon.h"
#include "apt32f102_uart.h"
#include "apt32f102_wwdt.h"
#include "apt32f102_types_local.h"
#include "apt32f102_clkcalib.h"
/*应用代码头文件*/
#include "uart.h"
#include "eeprom.h"
#include "Bootload_fun.h"
/*工程名称及软件版本号
此定义在每个工程中必须定义,用于识别当前工程对应的机型
Boot中会通过读取EEPROM中保存的设备信息来判断当前是什么机型
如果EEPROM 中没有保存设备信息那么当前就是Boot程序设备地址为0x00设备类型为0x00
*/
#define Project_Area 0x01 //工程所处区域为Boot区域 0x01:Boot区域0x02:APP区域
#define Peoject_Name "MD203_Bootload" //工程名称
#define Project_FW_Version 0x05 //工程对应的软件版本号
#define Project_Type 0x00 //工程对应的设备类型 Boot默认设备类型
extern volatile U32_T SysTick_100us;
extern volatile U32_T SysTick_1ms;
#endif