1、Launcher中的串口只使用串口0(调试串口)、串口2(主动RS485端口);串口1与串口3不使用,且不初始化。将串口通讯缓冲区修改为1100Byte。 目的:CH564由于将Launcher代码搬运到RAM中运行,因此可使用的变量大小只有32Kbyte。不使用的串口将不初始化,同时使用的通讯缓冲区将节约出来,否则RAM空间不够使用。 2、串口2 - 增加RS485使能,同时通讯增加避障功能。
19 lines
289 B
C
19 lines
289 B
C
/*
|
|
* watchdog.h
|
|
*
|
|
* Created on: Jan 9, 2026
|
|
* Author: cc
|
|
*/
|
|
|
|
#ifndef MCU_DRIVER_INC_WATCHDOG_H_
|
|
#define MCU_DRIVER_INC_WATCHDOG_H_
|
|
|
|
#include <stdint.h>
|
|
#include "ch564.h"
|
|
|
|
void WDT_Init(void);
|
|
void WDT_Feed(void);
|
|
void WDT_Reinit(void);
|
|
|
|
#endif /* MCU_DRIVER_INC_WATCHDOG_H_ */
|