diff options
| author | Ha Thach <[email protected]> | 2021-02-26 11:52:48 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-26 11:52:48 +0700 |
| commit | 0c05a02e676bdaa5f22e622a63de8af9b7851d97 (patch) | |
| tree | 63d18325f78c5b426de39e4ec52d9fb3c29609f2 /src | |
| parent | 1ce6f76d6e8df1fbb3c26cb5830c12491ed9b9e0 (diff) | |
| parent | e6e7c73f6e5ff53e3b4869fdc9abfd809d1e50a8 (diff) | |
Merge pull request #682 from hathach/rp2040_fix_hcd_init
Update RP2040 hcd_init to have rhport argument.
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/raspberrypi/rp2040/hcd_rp2040.c | 5 |
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(); |
