set usbDetectPin to input pull down

This commit is contained in:
czchc 2019-02-28 14:52:46 +08:00
parent 06d9f54f77
commit 148ee91b1f
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ void usbCableDetectInit(void)
usbDetectPin = IOGetByTag(IO_TAG(USB_DETECT_PIN));
IOInit(usbDetectPin, OWNER_USB_DETECT, 0);
IOConfigGPIO(usbDetectPin, IOCFG_OUT_PP);
IOConfigGPIO(usbDetectPin, IOCFG_IPD);
#endif
}