Skip to content

Commit 6c7624f

Browse files
committed
minor change config
1 parent 2ff208b commit 6c7624f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/arduino/ports/esp32/tusb_config_esp32.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ extern "C" {
4949
#error "ESP32 Arduino core version 2.0.8 or later is required"
5050
#endif
5151

52+
#ifndef CFG_TUSB_OS
53+
#define CFG_TUSB_OS OPT_OS_FREERTOS
54+
// clang-format off
55+
#define CFG_TUSB_OS_INC_PATH freertos/
56+
// clang-format on
57+
#endif
58+
5259
#ifndef CFG_TUD_LOG_LEVEL
5360
#define CFG_TUD_LOG_LEVEL 2
5461
#endif

src/tusb_config.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@
4646
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
4747
#include "../../arduino_tinyusb/include/tusb_config.h"
4848
#else
49-
#define CFG_TUSB_OS OPT_OS_FREERTOS
50-
// clang-format off
51-
#define CFG_TUSB_OS_INC_PATH freertos/
52-
// clang-format on
53-
5449
#include "arduino/ports/esp32/tusb_config_esp32.h"
5550
#endif
5651

0 commit comments

Comments
 (0)