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/device/webusb_serial/src | |
| parent | 1587d48e89cbaa8d0d1c870809bc40c3c8d1056f (diff) | |
change the tusb_rhport_init_t struct, exclude the rhport to make API more consistent
Diffstat (limited to 'examples/device/webusb_serial/src')
| -rw-r--r-- | examples/device/webusb_serial/src/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/device/webusb_serial/src/main.c b/examples/device/webusb_serial/src/main.c index 46215ec13..d189af91f 100644 --- a/examples/device/webusb_serial/src/main.c +++ b/examples/device/webusb_serial/src/main.c @@ -92,11 +92,10 @@ int main(void) { // init device stack on configured roothub port tusb_rhport_init_t dev_init = { - .rhport = BOARD_TUD_RHPORT, .role = TUSB_ROLE_DEVICE, .speed = TUSB_SPEED_AUTO }; - tusb_init(&dev_init); + tusb_init(BOARD_TUD_RHPORT, &dev_init); if (board_init_after_tusb) { board_init_after_tusb(); |
