summaryrefslogtreecommitdiff
path: root/src/portable/valentyusb
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-10-11 15:21:32 +0700
committerhathach <[email protected]>2024-10-11 15:31:49 +0700
commitd997f0071ea5d2d07e340d183fffb97e09526773 (patch)
treed796bbf0db3b860f506554029f4fe019ed892936 /src/portable/valentyusb
parent92602b9de3675c2d3e240bcd0838082e1a07b13b (diff)
change dcd_init() to take rhport struct
Diffstat (limited to 'src/portable/valentyusb')
-rw-r--r--src/portable/valentyusb/eptri/dcd_eptri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/valentyusb/eptri/dcd_eptri.c b/src/portable/valentyusb/eptri/dcd_eptri.c
index 8f40e3349..da7a5a81a 100644
--- a/src/portable/valentyusb/eptri/dcd_eptri.c
+++ b/src/portable/valentyusb/eptri/dcd_eptri.c
@@ -336,8 +336,8 @@ static void dcd_reset(void)
}
// Initializes the USB peripheral for device mode and enables it.
-void dcd_init(uint8_t rhport)
-{
+void dcd_init(const tusb_rhport_init_t* rh_init) {
+ const uint8_t rhport = rh_init->rhport;
(void) rhport;
usb_pullup_out_write(0);