configs/stm32f103-minimum/src/: USB reset was not working appropriately since the pin connected to D+ was incorrectly defined and the pullup/down logic was reversed.

This commit is contained in:
Matias N 2019-03-25 17:47:46 -06:00 committed by Gregory Nutt
parent ebbd91b441
commit b3f532349c
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ void stm32_usbinitialize(void)
int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable)
{
usbtrace(TRACE_DEVPULLUP, (uint16_t)enable);
stm32_gpiowrite(GPIO_USB_PULLUP, !enable);
stm32_gpiowrite(GPIO_USB_PULLUP, enable);
return OK;
}

View File

@ -195,7 +195,7 @@
/* USB Soft Connect Pullup: PC.13 */
#define GPIO_USB_PULLUP (GPIO_OUTPUT|GPIO_CNF_OUTPP|GPIO_MODE_50MHz|\
GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN13)
GPIO_OUTPUT_SET|GPIO_PORTA|GPIO_PIN12)
/* GPIO pins used by the GPIO Subsystem */