加入反初始化

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 */ /* USER CODE BEGIN 1 */
void USER_USB_DEVICE_DeInit(void)
{
USBD_Stop(&hUsbDeviceFS);
USBD_DeInit(&hUsbDeviceFS);
}
/* USER CODE END 1 */ /* USER CODE END 1 */
/** /**

View File

@@ -81,7 +81,7 @@ void MX_USB_DEVICE_Init(void);
* -- Insert functions declaration here -- * -- Insert functions declaration here --
*/ */
/* USER CODE BEGIN FD */ /* USER CODE BEGIN FD */
void USER_USB_DEVICE_DeInit(void);
/* USER CODE END FD */ /* USER CODE END FD */
/** /**
* @} * @}