From 5d71979f4ee629f5d811bd2e3f4d975f2a87f61a Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Wed, 2 Sep 2026 13:35:51 -0500 Subject: rp2040: do not require PICO_DEFAULT_PIO_USB_DP_PIN to be set for pio_usb --- hw/bsp/rp2040/family.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c index 55feec159..7437707da 100644 --- a/hw/bsp/rp2040/family.c +++ b/hw/bsp/rp2040/family.c @@ -184,7 +184,9 @@ void board_init(void) // rp2040 use pico-pio-usb for host tuh_configure() can be used to passed pio configuration to the host stack // Note: tuh_configure() must be called before tuh_init() pio_usb_configuration_t pio_cfg = PIO_USB_DEFAULT_CONFIG; +#ifdef PICO_DEFAULT_PIO_USB_DP_PIN pio_cfg.pin_dp = PICO_DEFAULT_PIO_USB_DP_PIN; +#endif tuh_configure(BOARD_TUH_RHPORT, TUH_CFGID_RPI_PIO_USB_CONFIGURATION, &pio_cfg); #endif -- cgit v1.3.1