mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
更新USB反初始化相关内容
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user