summaryrefslogtreecommitdiff
path: root/examples/device/hid_boot_interface/src/main.c
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-06-07 01:13:08 +0700
committerGitHub <[email protected]>2022-06-07 01:13:08 +0700
commita03a03d74eafa33c0cbaa0747db6b09a0e7083bd (patch)
tree3d442c2696e3821058c3262c735f876909900488 /examples/device/hid_boot_interface/src/main.c
parentafd9b1883de4d0927433c2286dfc56ed2a5e2203 (diff)
parent7c8278303bc14770ea9fcd9f6e4a9dbba32572e3 (diff)
Merge pull request #1495 from hathach/enhance-tusb-config
Better support multiple controllers configuration
Diffstat (limited to 'examples/device/hid_boot_interface/src/main.c')
-rw-r--r--examples/device/hid_boot_interface/src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/device/hid_boot_interface/src/main.c b/examples/device/hid_boot_interface/src/main.c
index e5e2f6856..21cdb383d 100644
--- a/examples/device/hid_boot_interface/src/main.c
+++ b/examples/device/hid_boot_interface/src/main.c
@@ -55,7 +55,9 @@ void hid_task(void);
int main(void)
{
board_init();
- tusb_init();
+
+ // init device stack on configured roothub port
+ tud_init(BOARD_TUD_RHPORT);
while (1)
{