summaryrefslogtreecommitdiff
path: root/examples/device/hid_boot_interface/src/main.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-06-06 22:41:04 +0700
committerhathach <[email protected]>2022-06-06 22:41:04 +0700
commit9794a2b865df81e667b464481bb9b1c70587e64b (patch)
tree1efc9a14f8077844357e69e306bd2796d090caf0 /examples/device/hid_boot_interface/src/main.c
parentf4c80dd218240d934a28cb21d8ddd6a0e3a33fe5 (diff)
more example update
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)
{