summaryrefslogtreecommitdiff
path: root/examples/device/cdc_uac2/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-10-10 17:00:40 +0700
committerGitHub <[email protected]>2024-10-10 17:00:40 +0700
commita4fb8354e41b2604f66e7da22afa292b1a44f0a2 (patch)
tree1e980f0c18f558e3041dbef3021afa346297a85d /examples/device/cdc_uac2/src
parentffdf81f53a84111a2536defa86e4a637c3c46854 (diff)
parent57aac432b52df6d284c98daf591e661d1c55aa05 (diff)
Merge pull request #2834 from hathach/add-tusb_int_handler-update-tinyusb_init
add new tusb_int_handler(rhport, in_isr) and update tusb_init(rhport, role)
Diffstat (limited to 'examples/device/cdc_uac2/src')
-rw-r--r--examples/device/cdc_uac2/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/cdc_uac2/src/main.c b/examples/device/cdc_uac2/src/main.c
index 25b2cd9a5..a75ec1427 100644
--- a/examples/device/cdc_uac2/src/main.c
+++ b/examples/device/cdc_uac2/src/main.c
@@ -46,7 +46,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 (CFG_TUSB_MCU == OPT_MCU_RP2040)
stdio_init_all();