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:
@@ -68,6 +68,11 @@ void USER_USB_DEVICE_DeInit(void)
|
||||
*/
|
||||
/* USER CODE BEGIN 1 */
|
||||
|
||||
bool USER_USB_is_Configured(void)
|
||||
{
|
||||
return (hUsbDeviceFS.dev_state == USBD_STATE_CONFIGURED);
|
||||
}
|
||||
|
||||
/* USER CODE END 1 */
|
||||
|
||||
/**
|
||||
|
||||
@@ -57,6 +57,10 @@
|
||||
/* Private function prototypes -----------------------------------------------*/
|
||||
/* USER CODE BEGIN PFP */
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
bool USER_USB_is_Configured(void);
|
||||
|
||||
/* USER CODE END PFP */
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user