1、Launcher中的串口只使用串口0(调试串口)、串口2(主动RS485端口);串口1与串口3不使用,且不初始化。将串口通讯缓冲区修改为1100Byte。 目的:CH564由于将Launcher代码搬运到RAM中运行,因此可使用的变量大小只有32Kbyte。不使用的串口将不初始化,同时使用的通讯缓冲区将节约出来,否则RAM空间不够使用。 2、串口2 - 增加RS485使能,同时通讯增加避障功能。
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
/*
|
||
* includes.h
|
||
*
|
||
* Created on: May 14, 2025
|
||
* Author: cc
|
||
*/
|
||
|
||
#ifndef USER_INCLUDES_H_
|
||
#define USER_INCLUDES_H_
|
||
|
||
#include <bootload_fun.h>
|
||
#include "ch564.h"
|
||
#include "system_ch564.h"
|
||
|
||
#include "debug.h"
|
||
#include "uart.h"
|
||
#include "led.h"
|
||
#include "timer.h"
|
||
#include "spi_sram.h"
|
||
#include "spi_flash.h"
|
||
#include "rw_logging.h"
|
||
#include "log_api.h"
|
||
#include "sram_mem_addr.h"
|
||
#include "flash_mem_addr.h"
|
||
#include "rtc.h"
|
||
#include "mcu_flash.h"
|
||
#include "watchdog.h"
|
||
|
||
/*工程名称及软件版本号
|
||
此定义在每个工程中必须定义,用于识别当前工程对应的机型
|
||
Boot中会通过读取EEPROM中保存的设备信息来判断当前是什么机型
|
||
如果EEPROM 中没有保存设备信息,那么当前就是Boot程序,设备地址为0x00,设备类型为0x00
|
||
*/
|
||
#define Project_Version "--BLV_C1P_Launcher V01--" //该工程版本用于编译到HEX/BIN 文件中用于识别文件用
|
||
|
||
#define Project_Area 0x01 //工程所处区域为Boot区域 0x01:Boot区域;0x02:APP区域
|
||
#define Peoject_Name "BLV_C1P_Launcher" //工程名称
|
||
#define Project_FW_Version 0x01 //工程对应的软件版本号
|
||
#define Project_Type 0x00 //工程对应的设备类型 Boot默认设备类型
|
||
|
||
|
||
|
||
#endif /* USER_INCLUDES_H_ */
|