diff options
| author | hathach <[email protected]> | 2023-08-04 12:07:39 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-08-04 12:07:39 +0700 |
| commit | 81aca17d6e9a17d5f37e7ff04988257a0be4ec3e (patch) | |
| tree | 22cac9af80dae48e558490cb068132d1c7a679f0 /examples/host/hid_controller | |
| parent | cfc146e18fe2aa0df4d77d435d4a4b7053361cd7 (diff) | |
| parent | 61f00c0c4dab0469c2e8ebad8eda1a26ae742e46 (diff) | |
Merge branch 'master' into blackf407VE
Diffstat (limited to 'examples/host/hid_controller')
| -rw-r--r-- | examples/host/hid_controller/only.txt | 1 | ||||
| -rw-r--r-- | examples/host/hid_controller/src/hid_app.c | 2 | ||||
| -rw-r--r-- | examples/host/hid_controller/src/main.c | 6 |
3 files changed, 7 insertions, 2 deletions
diff --git a/examples/host/hid_controller/only.txt b/examples/host/hid_controller/only.txt index 45da6c3f2..f8aa2186f 100644 --- a/examples/host/hid_controller/only.txt +++ b/examples/host/hid_controller/only.txt @@ -9,3 +9,4 @@ mcu:MIMXRT11XX mcu:RP2040 mcu:MSP432E4 mcu:RX65X +mcu:RAXXX 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 |
