diff options
| author | hathach <[email protected]> | 2023-04-24 21:42:31 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-04-26 22:36:17 +0700 |
| commit | 1a229f3ce2623f8e0cf072e66e3770ee7f95e095 (patch) | |
| tree | c0b63d1191342be9a8710e2c42e0abd3a18e3999 | |
| parent | 4c7fd1648e8aa27ac401faf6dcbd8801ff4cb443 (diff) | |
fix pio vbus typo
| -rw-r--r-- | hw/bsp/rp2040/family.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c index 920869585..3aa989c0e 100644 --- a/hw/bsp/rp2040/family.c +++ b/hw/bsp/rp2040/family.c @@ -125,10 +125,10 @@ void board_init(void) // Set the system clock to a multiple of 120mhz for bitbanging USB with pico-usb set_sys_clock_khz(120000, true); -#ifdef PIO_USB_VBUSEN_PIN +#ifdef PICO_DEFAULT_PIO_USB_VBUSEN_PIN gpio_init(PICO_DEFAULT_PIO_USB_VBUSEN_PIN); gpio_set_dir(PICO_DEFAULT_PIO_USB_VBUSEN_PIN, GPIO_OUT); - 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); #endif // rp2040 use pico-pio-usb for host tuh_configure() can be used to passed pio configuration to the host stack |
