diff options
| author | hathach <[email protected]> | 2023-07-31 19:09:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-07-31 19:09:40 +0700 |
| commit | 3f788a4e5a7758ce51cbcadef4ac21e427cc3c56 (patch) | |
| tree | e804bef2676cc9cd9e6506c9b83aebae36403a83 /examples/host | |
| parent | cb47231518d8a33bb9c5ab710c819049274d443b (diff) | |
enable USBMC for uno r4, add board_init_after_tusb() API
add BOARD_UPPERCASE for board detection
Diffstat (limited to 'examples/host')
| -rw-r--r-- | examples/host/bare_api/src/main.c | 4 | ||||
| -rw-r--r-- | examples/host/cdc_msc_hid/src/main.c | 4 | ||||
| -rw-r--r-- | examples/host/hid_controller/src/main.c | 4 | ||||
| -rw-r--r-- | examples/host/msc_file_explorer/src/main.c | 5 |
4 files changed, 17 insertions, 0 deletions
diff --git a/examples/host/bare_api/src/main.c b/examples/host/bare_api/src/main.c index bb7fa850e..7286befe0 100644 --- a/examples/host/bare_api/src/main.c +++ b/examples/host/bare_api/src/main.c @@ -67,6 +67,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 diff --git a/examples/host/cdc_msc_hid/src/main.c b/examples/host/cdc_msc_hid/src/main.c index 1f4acb822..51251be5c 100644 --- a/examples/host/cdc_msc_hid/src/main.c +++ b/examples/host/cdc_msc_hid/src/main.c @@ -48,6 +48,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 diff --git a/examples/host/hid_controller/src/main.c b/examples/host/hid_controller/src/main.c index 4dcc92587..a4ab2f711 100644 --- a/examples/host/hid_controller/src/main.c +++ b/examples/host/hid_controller/src/main.c @@ -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 diff --git a/examples/host/msc_file_explorer/src/main.c b/examples/host/msc_file_explorer/src/main.c index 7b1c2ef27..fc4b4e669 100644 --- a/examples/host/msc_file_explorer/src/main.c +++ b/examples/host/msc_file_explorer/src/main.c @@ -80,6 +80,11 @@ int main(void) // init host stack on configured roothub port tuh_init(BOARD_TUH_RHPORT); + + if (board_init_after_tusb) { + board_init_after_tusb(); + } + msc_app_init(); while (1) |
