Skip to content

Commit c47898a

Browse files
Do no set up VBUS pin mode in init()
This is already done by usbd_conf.c which is also the place where it is read, so no need to do it again here.
1 parent 2c0d86c commit c47898a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cores/arduino/wiring.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@ void init( void )
6464

6565
stm32l0_dma_configure(STM32L0_ADC_IRQ_PRIORITY, STM32L0_UART_IRQ_PRIORITY, STM32L0_UART_IRQ_PRIORITY);
6666

67-
#if defined(STM32L0_CONFIG_PIN_VBUS)
68-
if (STM32L0_CONFIG_PIN_VBUS != STM32L0_GPIO_PIN_NONE) {
69-
stm32l0_gpio_pin_configure(STM32L0_CONFIG_PIN_VBUS, (STM32L0_GPIO_PARK_HIZ | STM32L0_GPIO_PUPD_PULLDOWN | STM32L0_GPIO_OSPEED_LOW | STM32L0_GPIO_OTYPE_PUSHPULL | STM32L0_GPIO_MODE_INPUT));
70-
}
71-
#endif
72-
7367
#if defined(STM32L0_CONFIG_PIN_VBAT)
7468
stm32l0_gpio_pin_configure(STM32L0_CONFIG_PIN_VBAT, (STM32L0_GPIO_PARK_NONE | STM32L0_GPIO_MODE_ANALOG));
7569
#endif

0 commit comments

Comments
 (0)