diff options
| author | hathach <[email protected]> | 2024-10-14 18:27:52 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-10-14 18:27:52 +0700 |
| commit | 1f18be93db39dbc57bbf34f982dbe07e209a2ae3 (patch) | |
| tree | 4da021608772f07fba9105da956112e495d9eeb9 /examples/host/bare_api/src/main.c | |
| parent | 1587d48e89cbaa8d0d1c870809bc40c3c8d1056f (diff) | |
change the tusb_rhport_init_t struct, exclude the rhport to make API more consistent
Diffstat (limited to 'examples/host/bare_api/src/main.c')
| -rw-r--r-- | examples/host/bare_api/src/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/host/bare_api/src/main.c b/examples/host/bare_api/src/main.c index e710e3caa..f582f4f5a 100644 --- a/examples/host/bare_api/src/main.c +++ b/examples/host/bare_api/src/main.c @@ -63,11 +63,10 @@ int main(void) // init host stack on configured roothub port tusb_rhport_init_t host_init = { - .rhport = BOARD_TUH_RHPORT, .role = TUSB_ROLE_HOST, .speed = TUSB_SPEED_AUTO }; - tusb_init(&host_init); + tusb_init(BOARD_TUH_RHPORT, &host_init); if (board_init_after_tusb) { board_init_after_tusb(); |
