diff options
| author | hathach <[email protected]> | 2024-10-10 16:22:12 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-10-10 16:28:36 +0700 |
| commit | 57aac432b52df6d284c98daf591e661d1c55aa05 (patch) | |
| tree | 1e980f0c18f558e3041dbef3021afa346297a85d /examples/device/hid_boot_interface | |
| parent | ffdf81f53a84111a2536defa86e4a637c3c46854 (diff) | |
add new tusb_int_handler(rhport, in_isr) as common irq handler
update tusb_init() to take rhport and role, defined as macro with optional argument for backward compatible
Diffstat (limited to 'examples/device/hid_boot_interface')
| -rw-r--r-- | examples/device/hid_boot_interface/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/hid_boot_interface/src/main.c b/examples/device/hid_boot_interface/src/main.c index c2aef502d..351a60854 100644 --- a/examples/device/hid_boot_interface/src/main.c +++ b/examples/device/hid_boot_interface/src/main.c @@ -57,7 +57,7 @@ int main(void) board_init(); // init device stack on configured roothub port - tud_init(BOARD_TUD_RHPORT); + tusb_init(BOARD_TUD_RHPORT, TUSB_ROLE_DEVICE); if (board_init_after_tusb) { board_init_after_tusb(); |
