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/bare_api/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/bare_api/src/main.c')
| -rw-r--r-- | examples/host/bare_api/src/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/host/bare_api/src/main.c b/examples/host/bare_api/src/main.c index eb3f7d8d7..2cc05d34d 100644 --- a/examples/host/bare_api/src/main.c +++ b/examples/host/bare_api/src/main.c @@ -62,8 +62,10 @@ int main(void) { board_init(); - printf("TinyUSB Host HID Controller Example\r\n"); - tusb_init(); + printf("TinyUSB Bare API Example\r\n"); + + // init host stack on configured roothub port + tuh_init(BOARD_TUH_RHPORT); while (1) { |
