summaryrefslogtreecommitdiff
path: root/examples/device/hid_composite_freertos/src/main.c
diff options
context:
space:
mode:
authorAlex Lisitsyn <[email protected]>2021-03-09 11:29:07 +0100
committerAlex Lisitsyn <[email protected]>2021-04-16 13:38:00 +0200
commit2f0cb8b5f1a944187635a58a748ed08738d324a5 (patch)
tree72948ac73b578aa315d37486f04fc2c3351ab9aa /examples/device/hid_composite_freertos/src/main.c
parentc611199632b9288eff76c1c4bfdce5d8cc024748 (diff)
tinyusb: add support of esp32s3 target
add support of new esp32s3 target and the board update the roles.mk wrapper to allow dfu flashing of espressif chip update examples to allow compilation for esp32s3_addax_1 board once the code is tested the PR to original tinyusb repo will be submitted
Diffstat (limited to 'examples/device/hid_composite_freertos/src/main.c')
-rw-r--r--examples/device/hid_composite_freertos/src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/device/hid_composite_freertos/src/main.c b/examples/device/hid_composite_freertos/src/main.c
index 37b4a0cf7..47f976427 100644
--- a/examples/device/hid_composite_freertos/src/main.c
+++ b/examples/device/hid_composite_freertos/src/main.c
@@ -95,15 +95,15 @@ int main(void)
// Create HID task
(void) xTaskCreateStatic( hid_task, "hid", HID_STACK_SZIE, NULL, configMAX_PRIORITIES-2, hid_stack, &hid_taskdef);
- // skip starting scheduler (and return) for ESP32-S2
-#if CFG_TUSB_MCU != OPT_MCU_ESP32S2
+ // skip starting scheduler (and return) for ESP32-S2 or ESP32-S3
+#if CFG_TUSB_MCU != OPT_MCU_ESP32S2 && CFG_TUSB_MCU != OPT_MCU_ESP32S3
vTaskStartScheduler();
#endif
return 0;
}
-#if CFG_TUSB_MCU == OPT_MCU_ESP32S2
+#if CFG_TUSB_MCU == OPT_MCU_ESP32S2 || CFG_TUSB_MCU == OPT_MCU_ESP32S3
void app_main(void)
{
main();