summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-06-03 11:32:09 +0700
committerhathach <[email protected]>2022-06-03 11:32:09 +0700
commit2571211957b28be7fd706d3cdd4209f17189788a (patch)
treec3ed51c9db6a32804c1da5b4c380ddfe92bcf1b2 /examples
parent8b9cf152a0dedda573fb3374d8c873dce4b883d1 (diff)
remove static port defined for device/host
Diffstat (limited to 'examples')
-rw-r--r--examples/device/cdc_msc/src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/device/cdc_msc/src/main.c b/examples/device/cdc_msc/src/main.c
index 131ae6549..c3666763b 100644
--- a/examples/device/cdc_msc/src/main.c
+++ b/examples/device/cdc_msc/src/main.c
@@ -54,7 +54,9 @@ void cdc_task(void);
int main(void)
{
board_init();
- tusb_init();
+
+ // init device stack on configured roothub port
+ tud_init(BOARD_TUD_RHPORT);
while (1)
{