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:
parent
ebbd91b441
commit
b3f532349c
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user