加入反初始化

This commit is contained in:
不吃油炸鸡
2026-02-01 15:01:32 +08:00
parent 2b5d522d0b
commit 37bb6d4f47
2 changed files with 7 additions and 1 deletions

View File

@@ -55,6 +55,12 @@ USBD_HandleTypeDef hUsbDeviceFS;
*/
/* USER CODE BEGIN 1 */
void USER_USB_DEVICE_DeInit(void)
{
USBD_Stop(&hUsbDeviceFS);
USBD_DeInit(&hUsbDeviceFS);
}
/* USER CODE END 1 */
/**