diff options
| author | Ha Thach <[email protected]> | 2023-08-04 11:48:04 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-04 11:48:04 +0700 |
| commit | 1b04db2a777c3bac88c964f8171af0928a55477d (patch) | |
| tree | 37d65952d6560d8e6a3580379dcd2a3f90860a41 /examples/host/hid_controller/src | |
| parent | 2029ca9536e7e889f0f420218136e7bd1ac091fc (diff) | |
| parent | de4ad2c7754cd2b11a4a9afafbc82766eccea3b2 (diff) | |
Merge branch 'master' into master
Diffstat (limited to 'examples/host/hid_controller/src')
| -rw-r--r-- | examples/host/hid_controller/src/hid_app.c | 2 | ||||
| -rw-r--r-- | examples/host/hid_controller/src/main.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/examples/host/hid_controller/src/hid_app.c b/examples/host/hid_controller/src/hid_app.c index 76de97b41..bff830ca2 100644 --- a/examples/host/hid_controller/src/hid_app.c +++ b/examples/host/hid_controller/src/hid_app.c @@ -23,7 +23,7 @@ * */ -#include "bsp/board.h" +#include "bsp/board_api.h" #include "tusb.h" /* From https://www.kernel.org/doc/html/latest/input/gamepad.html diff --git a/examples/host/hid_controller/src/main.c b/examples/host/hid_controller/src/main.c index 4dcc92587..05a5ae176 100644 --- a/examples/host/hid_controller/src/main.c +++ b/examples/host/hid_controller/src/main.c @@ -32,7 +32,7 @@ #include <stdio.h> #include <string.h> -#include "bsp/board.h" +#include "bsp/board_api.h" #include "tusb.h" //--------------------------------------------------------------------+ @@ -54,6 +54,10 @@ int main(void) // init host stack on configured roothub port tuh_init(BOARD_TUH_RHPORT); + if (board_init_after_tusb) { + board_init_after_tusb(); + } + while (1) { // tinyusb host task |
