chore: 源码编码GB2312统一转换为UTF-8

18个含有中文注释的.c/.h文件从GB2312转为UTF-8(无BOM)
This commit is contained in:
2026-07-20 14:27:38 +08:00
parent aef9d4effe
commit 8ded5ca0dc
18 changed files with 208 additions and 208 deletions
+9 -9
View File
@@ -6,11 +6,11 @@
#include "hdl_usart.h"
//定义数据获取回调函数
//瀹氫箟鏁版嵁鑾峰彇鍥炶皟鍑芥暟
static hdl_debug_uart_rx_cb_t debug_rx_callback_cbs;
static com_rx_callback com_rx_callback_cbs;
//接收中断
//鎺ユ敹涓柇
static void COM_Rx_IrqCallback(void);
static void COM_RxErr_IrqCallback(void);
@@ -25,7 +25,7 @@ static void INTC_IrqInstalHandler(const stc_irq_signin_config_t* pstcConfig, uin
}
}
//调试串口
//璋冭瘯涓插彛
static void DEBUG_RxErr_IrqCallback(void)
{
(void)USART_ReadData(DEBUG_UART);
@@ -80,7 +80,7 @@ void hdl_debug_uart_init(void)
stcUartInit.u32OverSampleBit = USART_OVER_SAMPLE_8BIT;
USART_UART_Init(DEBUG_UART, &stcUartInit, NULL);
//接收中断配置
//鎺ユ敹涓柇閰嶇疆
stc_irq_signin_config_t stcIrqSigninConfig;
stcIrqSigninConfig.enIRQn = DEBUG_UART_INT_EI_IRQ;
stcIrqSigninConfig.enIntSrc = DEBUG_UART_INT_EI;
@@ -127,7 +127,7 @@ int hdl_debug_uart_getc(int *ch)
}
//通信模块串口初始化
//閫氫俊妯″潡涓插彛鍒濆鍖?
void hdl_com_uart_init(void)
{
stc_usart_uart_init_t stcUartInit={0};
@@ -149,7 +149,7 @@ void hdl_com_uart_init(void)
stcUartInit.u32OverSampleBit = USART_OVER_SAMPLE_8BIT;
USART_UART_Init(COM_UART, &stcUartInit, NULL);
//接收中断配置
//鎺ユ敹涓柇閰嶇疆
stcIrqSigninConfig.enIRQn = COM_INT_EI_IRQ;
stcIrqSigninConfig.enIntSrc = COM_INT_EI;
stcIrqSigninConfig.pfnCallback = &COM_RxErr_IrqCallback;
@@ -167,7 +167,7 @@ void hdl_com_uart_init(void)
}
//通信发送数据
//閫氫俊鍙戦€佹暟鎹?
void hdl_com_uart_send(uint8_t* w_buf, uint16_t len)
{
uint8_t i;
@@ -180,7 +180,7 @@ void hdl_com_uart_send(uint8_t* w_buf, uint16_t len)
}
}
//通信回调函数注册
//閫氫俊鍥炶皟鍑芥暟娉ㄥ唽
void hdl_com_uart_rx_register(com_rx_callback pCBS)
{
if (com_rx_callback_cbs == 0)
@@ -189,7 +189,7 @@ void hdl_com_uart_rx_register(com_rx_callback pCBS)
}
}
//通信接收中断
//閫氫俊鎺ユ敹涓柇
static void COM_Rx_IrqCallback(void)
{
uint8_t r_data = 0;