diff options
| author | Ha Thach <[email protected]> | 2022-06-07 01:13:08 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-07 01:13:08 +0700 |
| commit | a03a03d74eafa33c0cbaa0747db6b09a0e7083bd (patch) | |
| tree | 3d442c2696e3821058c3262c735f876909900488 /examples/host/hid_controller/src/main.c | |
| parent | afd9b1883de4d0927433c2286dfc56ed2a5e2203 (diff) | |
| parent | 7c8278303bc14770ea9fcd9f6e4a9dbba32572e3 (diff) | |
Merge pull request #1495 from hathach/enhance-tusb-config
Better support multiple controllers configuration
Diffstat (limited to 'examples/host/hid_controller/src/main.c')
| -rw-r--r-- | examples/host/hid_controller/src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/host/hid_controller/src/main.c b/examples/host/hid_controller/src/main.c index b9b37a4d2..299a3ff10 100644 --- a/examples/host/hid_controller/src/main.c +++ b/examples/host/hid_controller/src/main.c @@ -49,9 +49,10 @@ int main(void) board_init(); printf("TinyUSB Host HID Controller Example\r\n"); - printf("Note: Events only displayed for explictly supported controllers\r\n"); + printf("Note: Events only displayed for explicit supported controllers\r\n"); - tusb_init(); + // init host stack on configured roothub port + tuh_init(BOARD_TUH_RHPORT); while (1) { |
