chore: 源码编码GB2312统一转换为UTF-8
18个含有中文注释的.c/.h文件从GB2312转为UTF-8(无BOM)
This commit is contained in:
+4
-4
@@ -15,7 +15,7 @@ void hdl_usb_init(void)
|
||||
|
||||
LL_PERIPH_WE(LL_PERIPH_EFM | LL_PERIPH_FCG | LL_PERIPH_GPIO | LL_PERIPH_PWC_CLK_RMU | LL_PERIPH_SRAM);
|
||||
|
||||
/* 时钟配置 */
|
||||
/* 鏃堕挓閰嶇疆 */
|
||||
(void)CLK_PLLxStructInit(&stcUpllInit);
|
||||
stcUpllInit.u8PLLState = CLK_PLLX_ON;
|
||||
stcUpllInit.PLLCFGR = 0UL;
|
||||
@@ -27,7 +27,7 @@ void hdl_usb_init(void)
|
||||
(void)CLK_PLLxInit(&stcUpllInit);
|
||||
CLK_SetUSBClockSrc(CLK_USBCLK_PLLXP);
|
||||
|
||||
/* 引脚配置 */
|
||||
/* 寮曡剼閰嶇疆 */
|
||||
(void)GPIO_StructInit(&stcGpioCfg);
|
||||
|
||||
stcGpioCfg.u16PinAttr = PIN_ATTR_ANALOG;
|
||||
@@ -38,10 +38,10 @@ void hdl_usb_init(void)
|
||||
// GPIO_SetFunc(USB_VBUS_PORT, USB_VBUS_PIN, GPIO_FUNC_10); /* VBUS */
|
||||
FCG_Fcg1PeriphClockCmd(FCG1_PERIPH_USBFS, ENABLE);
|
||||
|
||||
/* 中断配置 */
|
||||
/* 涓柇閰嶇疆 */
|
||||
stcIrqRegiConf.enIRQn = INT030_IRQn;
|
||||
stcIrqRegiConf.enIntSrc = INT_SRC_USBFS_GLB;
|
||||
stcIrqRegiConf.pfnCallback = &USB_IRQ_Handler; // 添加中断函数
|
||||
stcIrqRegiConf.pfnCallback = &USB_IRQ_Handler; // 娣诲姞涓柇鍑芥暟
|
||||
(void)INTC_IrqSignIn(&stcIrqRegiConf);
|
||||
NVIC_ClearPendingIRQ(stcIrqRegiConf.enIRQn);
|
||||
NVIC_SetPriority(stcIrqRegiConf.enIRQn, DDL_IRQ_PRIO_15);
|
||||
|
||||
Reference in New Issue
Block a user