更新USB反初始化相关内容

This commit is contained in:
不吃油炸鸡
2026-02-08 19:30:56 +08:00
parent 23b7f7d283
commit 45aaffdc08
7 changed files with 24885 additions and 24797 deletions

View File

@@ -30,6 +30,9 @@ void MessageTask(void *argument)
// set the EEPROM flag
EEPROM_UpdateCommand_Write(true);
HAL_Delay(100);
USER_USB_DEVICE_DeInit();
// 给予PC足够的时间来识别设备断开
HAL_Delay(500);
// reset
NVIC_SystemReset();
}