Skip to content

Commit 2ca4b90

Browse files
committed
fix build with esp32s2,s3
1 parent 61e908e commit 2ca4b90

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/arduino/Adafruit_USBH_Host.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include "arduino/ports/esp32/tusb_config_esp32.h"
2828
#include "driver/gpio.h"
2929
#include <Arduino.h>
30-
#define MSBFIRST SPI_MSBFIRST
3130
#endif
3231

3332
#include "tusb_option.h"

src/arduino/ports/esp32/tusb_config_esp32.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,6 @@ extern "C" {
6363
// with no OTG USB MCU such as eps32, c3 etc...
6464
//--------------------------------------------------------------------
6565

66-
#ifndef CFG_TUSB_OS
67-
#define CFG_TUSB_OS OPT_OS_FREERTOS
68-
69-
// clang-format off
70-
#define CFG_TUSB_OS_INC_PATH freertos/
71-
// clang-format on
72-
#endif
73-
7466
// #ifndef CFG_TUSB_DEBUG
7567
// #define CFG_TUSB_DEBUG 0
7668
// #endif

src/tusb_config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,15 @@
4242
// Note: when compiling core Arduino IDEs will include tusb_config.h in the BSP
4343
// sdk/include/arduino_tinyusb/include. While compiling .c file in this library this
4444
// file will be used instead. For consistency: include the one in BSP here as well
45+
#include "sdkconfig.h"
4546
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
4647
#include "../../arduino_tinyusb/include/tusb_config.h"
4748
#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+
4854
#include "arduino/ports/esp32/tusb_config_esp32.h"
4955
#endif
5056

0 commit comments

Comments
 (0)