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:
@@ -48,6 +48,12 @@ USBD_HandleTypeDef hUsbDeviceFS;
|
|||||||
*/
|
*/
|
||||||
/* USER CODE BEGIN 0 */
|
/* USER CODE BEGIN 0 */
|
||||||
|
|
||||||
|
void USER_USB_DEVICE_DeInit(void)
|
||||||
|
{
|
||||||
|
USBD_Stop(&hUsbDeviceFS);
|
||||||
|
USBD_DeInit(&hUsbDeviceFS);
|
||||||
|
}
|
||||||
|
|
||||||
/* USER CODE END 0 */
|
/* USER CODE END 0 */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ void MX_USB_DEVICE_Init(void);
|
|||||||
*/
|
*/
|
||||||
/* USER CODE BEGIN FD */
|
/* USER CODE BEGIN FD */
|
||||||
|
|
||||||
|
void USER_USB_DEVICE_DeInit(void);
|
||||||
|
|
||||||
/* USER CODE END FD */
|
/* USER CODE END FD */
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
|
|||||||
Reference in New Issue
Block a user