summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraham sanderson <[email protected]>2026-09-02 13:35:51 -0500
committergraham sanderson <[email protected]>2026-09-02 13:35:51 -0500
commit5d71979f4ee629f5d811bd2e3f4d975f2a87f61a (patch)
tree24edae07cd538f6c560930fcfd4453d752814f7a
parentdae3f9a366bfcddbf9dcf1b48d7500286a849539 (diff)
rp2040: do not require PICO_DEFAULT_PIO_USB_DP_PIN to be set for pio_usb
-rw-r--r--hw/bsp/rp2040/family.c2
1 files changed, 2 insertions, 0 deletions
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