summaryrefslogtreecommitdiff
path: root/src/portable/raspberrypi
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-10-11 17:53:39 +0700
committerhathach <[email protected]>2024-10-11 17:53:39 +0700
commit1587d48e89cbaa8d0d1c870809bc40c3c8d1056f (patch)
treea01565a3ddfef6225497dc4e83ffc0fa93830ce2 /src/portable/raspberrypi
parentf3b7d7515e9cae834013dc9ee3a67d87111090eb (diff)
hcd_init() take init struct
Diffstat (limited to 'src/portable/raspberrypi')
-rw-r--r--src/portable/raspberrypi/pio_usb/hcd_pio_usb.c4
-rw-r--r--src/portable/raspberrypi/rp2040/hcd_rp2040.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c b/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c
index f4de3c51d..4386bbce4 100644
--- a/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c
+++ b/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c
@@ -55,8 +55,8 @@ bool hcd_configure(uint8_t rhport, uint32_t cfg_id, const void *cfg_param) {
return true;
}
-bool hcd_init(uint8_t rhport) {
- (void) rhport;
+bool hcd_init(const tusb_rhport_init_t* rh_init) {
+ (void) rh_init;
// To run USB SOF interrupt in core1, call this init in core1
pio_usb_host_init(&pio_host_cfg);
diff --git a/src/portable/raspberrypi/rp2040/hcd_rp2040.c b/src/portable/raspberrypi/rp2040/hcd_rp2040.c
index 222dbbbf0..a870418a8 100644
--- a/src/portable/raspberrypi/rp2040/hcd_rp2040.c
+++ b/src/portable/raspberrypi/rp2040/hcd_rp2040.c
@@ -375,9 +375,8 @@ static void _hw_endpoint_init(struct hw_endpoint *ep, uint8_t dev_addr, uint8_t
//--------------------------------------------------------------------+
// HCD API
//--------------------------------------------------------------------+
-bool hcd_init(uint8_t rhport)
-{
- (void) rhport;
+bool hcd_init(const tusb_rhport_init_t* rh_init) {
+ (void) rh_init;
pico_trace("hcd_init %d\n", rhport);
assert(rhport == 0);