Skip to content

Commit 1a229f3

Browse files
committed
fix pio vbus typo
1 parent 4c7fd16 commit 1a229f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hw/bsp/rp2040/family.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ void board_init(void)
125125
// Set the system clock to a multiple of 120mhz for bitbanging USB with pico-usb
126126
set_sys_clock_khz(120000, true);
127127

128-
#ifdef PIO_USB_VBUSEN_PIN
128+
#ifdef PICO_DEFAULT_PIO_USB_VBUSEN_PIN
129129
gpio_init(PICO_DEFAULT_PIO_USB_VBUSEN_PIN);
130130
gpio_set_dir(PICO_DEFAULT_PIO_USB_VBUSEN_PIN, GPIO_OUT);
131-
gpio_put(PICO_DEFAULT_PIO_USB_VBUSEN_PIN, PIO_USB_VBUSEN_STATE);
131+
gpio_put(PICO_DEFAULT_PIO_USB_VBUSEN_PIN, PICO_DEFAULT_PIO_USB_VBUSEN_STATE);
132132
#endif
133133

134134
// rp2040 use pico-pio-usb for host tuh_configure() can be used to passed pio configuration to the host stack

0 commit comments

Comments
 (0)