summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam Fraser <[email protected]>2021-02-25 15:48:19 +0000
committerLiam Fraser <[email protected]>2021-02-25 15:48:19 +0000
commite6e7c73f6e5ff53e3b4869fdc9abfd809d1e50a8 (patch)
treecb55fde97fdf8f88bf598f81dbcafe965b398aaa
parent50a0bddd8b5f394215bdf36ac5b17a7386a77e3d (diff)
Update RP2040 hcd_init to have rhport argument.
-rw-r--r--src/portable/raspberrypi/rp2040/hcd_rp2040.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/portable/raspberrypi/rp2040/hcd_rp2040.c b/src/portable/raspberrypi/rp2040/hcd_rp2040.c
index efb2bd430..0f2779453 100644
--- a/src/portable/raspberrypi/rp2040/hcd_rp2040.c
+++ b/src/portable/raspberrypi/rp2040/hcd_rp2040.c
@@ -363,9 +363,10 @@ static void hw_endpoint_init(uint8_t dev_addr, const tusb_desc_endpoint_t *ep_de
//--------------------------------------------------------------------+
// HCD API
//--------------------------------------------------------------------+
-bool hcd_init(void)
+bool hcd_init(uint8_t rhport)
{
- pico_trace("hcd_init\n");
+ pico_trace("hcd_init %d\n", rhport);
+ assert(rhport == 0);
// Reset any previous state
rp2040_usb_init();