diff options
| author | hathach <[email protected]> | 2024-10-11 17:53:39 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-10-11 17:53:39 +0700 |
| commit | 1587d48e89cbaa8d0d1c870809bc40c3c8d1056f (patch) | |
| tree | a01565a3ddfef6225497dc4e83ffc0fa93830ce2 /src/portable/chipidea | |
| parent | f3b7d7515e9cae834013dc9ee3a67d87111090eb (diff) | |
hcd_init() take init struct
Diffstat (limited to 'src/portable/chipidea')
| -rw-r--r-- | src/portable/chipidea/ci_hs/hcd_ci_hs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/portable/chipidea/ci_hs/hcd_ci_hs.c b/src/portable/chipidea/ci_hs/hcd_ci_hs.c index 462cbd301..fbc51f6df 100644 --- a/src/portable/chipidea/ci_hs/hcd_ci_hs.c +++ b/src/portable/chipidea/ci_hs/hcd_ci_hs.c @@ -70,7 +70,8 @@ bool hcd_dcache_clean_invalidate(void const* addr, uint32_t data_size) { // Controller API //--------------------------------------------------------------------+ -bool hcd_init(uint8_t rhport) { +bool hcd_init(const tusb_rhport_init_t* rh_init) { + const uint8_t rhport = rh_init->rhport; ci_hs_regs_t *hcd_reg = CI_HS_REG(rhport); // Reset controller |
