From 4adc5e0ed24dd117953e7611fdb54d5ac15352c5 Mon Sep 17 00:00:00 2001 From: jflyper Date: Fri, 13 Apr 2018 02:37:32 +0900 Subject: [PATCH] Drop VBUS_SENSING_ENABLED handling in usb_bsp.c --- src/main/vcpf4/usb_bsp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/vcpf4/usb_bsp.c b/src/main/vcpf4/usb_bsp.c index 1160c47d8..a3f3e4336 100644 --- a/src/main/vcpf4/usb_bsp.c +++ b/src/main/vcpf4/usb_bsp.c @@ -80,10 +80,6 @@ void USB_OTG_BSP_Init(USB_OTG_CORE_HANDLE *pdev) GPIO_PinAFConfig(GPIOA,GPIO_PinSource11,GPIO_AF_OTG1_FS) ; GPIO_PinAFConfig(GPIOA,GPIO_PinSource12,GPIO_AF_OTG1_FS) ; -#ifdef VBUS_SENSING_ENABLED - IOConfigGPIO(IOGetByTag(IO_TAG(VBUS_SENSING_PIN)), IOCFG_IN_FLOATING); -#endif - RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE); RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_OTG_FS, ENABLE) ; -- 2.11.4.GIT