diff options
| author | hathach <[email protected]> | 2024-04-25 20:23:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-04-25 20:23:40 +0700 |
| commit | 2e995d7cf4b2971e3ca7167a097b99832c8d61ce (patch) | |
| tree | 7895e6ba2a2e4f34b42af14930dea5be698a9e3b /examples/device/hid_composite_freertos/src | |
| parent | fc91e15488523548b6eafa63a3cb6190c1ba72d8 (diff) | |
adding support for esp32 for use with max3421e host
Diffstat (limited to 'examples/device/hid_composite_freertos/src')
| -rw-r--r-- | examples/device/hid_composite_freertos/src/main.c | 6 | ||||
| -rw-r--r-- | examples/device/hid_composite_freertos/src/tusb_config.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/device/hid_composite_freertos/src/main.c b/examples/device/hid_composite_freertos/src/main.c index ff2cb635e..2bd545bc2 100644 --- a/examples/device/hid_composite_freertos/src/main.c +++ b/examples/device/hid_composite_freertos/src/main.c @@ -31,7 +31,7 @@ #include "tusb.h" #include "usb_descriptors.h" -#if TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3) +#if TUP_MCU_ESPRESSIF // ESP-IDF need "freertos/" prefix in include path. // CFG_TUSB_OS_INC_PATH should be defined accordingly. #include "freertos/FreeRTOS.h" @@ -113,14 +113,14 @@ int main(void) xTimerStart(blinky_tm, 0); // skip starting scheduler (and return) for ESP32-S2 or ESP32-S3 -#if !TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3) +#if !TUP_MCU_ESPRESSIF vTaskStartScheduler(); #endif return 0; } -#if TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3) +#if TUP_MCU_ESPRESSIF void app_main(void) { main(); diff --git a/examples/device/hid_composite_freertos/src/tusb_config.h b/examples/device/hid_composite_freertos/src/tusb_config.h index 3ba9bf311..0689e0f23 100644 --- a/examples/device/hid_composite_freertos/src/tusb_config.h +++ b/examples/device/hid_composite_freertos/src/tusb_config.h @@ -59,7 +59,7 @@ #endif // Espressif IDF requires "freertos/" prefix in include path -#if TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3) +#if TUP_MCU_ESPRESSIF #define CFG_TUSB_OS_INC_PATH freertos/ #endif |
