We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c7fd16 commit 1a229f3Copy full SHA for 1a229f3
hw/bsp/rp2040/family.c
@@ -125,10 +125,10 @@ void board_init(void)
125
// Set the system clock to a multiple of 120mhz for bitbanging USB with pico-usb
126
set_sys_clock_khz(120000, true);
127
128
-#ifdef PIO_USB_VBUSEN_PIN
+#ifdef PICO_DEFAULT_PIO_USB_VBUSEN_PIN
129
gpio_init(PICO_DEFAULT_PIO_USB_VBUSEN_PIN);
130
gpio_set_dir(PICO_DEFAULT_PIO_USB_VBUSEN_PIN, GPIO_OUT);
131
- gpio_put(PICO_DEFAULT_PIO_USB_VBUSEN_PIN, PIO_USB_VBUSEN_STATE);
+ gpio_put(PICO_DEFAULT_PIO_USB_VBUSEN_PIN, PICO_DEFAULT_PIO_USB_VBUSEN_STATE);
132
#endif
133
134
// rp2040 use pico-pio-usb for host tuh_configure() can be used to passed pio configuration to the host stack
0 commit comments