diff options
| author | hathach <[email protected]> | 2024-10-11 15:21:32 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-10-11 15:31:49 +0700 |
| commit | d997f0071ea5d2d07e340d183fffb97e09526773 (patch) | |
| tree | d796bbf0db3b860f506554029f4fe019ed892936 /src/portable/raspberrypi | |
| parent | 92602b9de3675c2d3e240bcd0838082e1a07b13b (diff) | |
change dcd_init() to take rhport struct
Diffstat (limited to 'src/portable/raspberrypi')
| -rw-r--r-- | src/portable/raspberrypi/rp2040/dcd_rp2040.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/portable/raspberrypi/rp2040/dcd_rp2040.c b/src/portable/raspberrypi/rp2040/dcd_rp2040.c index bc0deee32..9473d3bd8 100644 --- a/src/portable/raspberrypi/rp2040/dcd_rp2040.c +++ b/src/portable/raspberrypi/rp2040/dcd_rp2040.c @@ -369,7 +369,8 @@ static void __tusb_irq_path_func(dcd_rp2040_irq)(void) { #define PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY 0xff #endif -void dcd_init(uint8_t rhport) { +void dcd_init(const tusb_rhport_init_t* rh_init) { + const uint8_t rhport = rh_init->rhport; assert(rhport == 0); TU_LOG(2, "Chip Version B%u\r\n", rp2040_chip_version()); |
