Skip to content

Commit

Permalink
fix build with esp32s2,s3
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Nov 21, 2023
1 parent 61e908e commit 2ca4b90
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/arduino/Adafruit_USBH_Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "arduino/ports/esp32/tusb_config_esp32.h"
#include "driver/gpio.h"
#include <Arduino.h>
#define MSBFIRST SPI_MSBFIRST
#endif

#include "tusb_option.h"
Expand Down
8 changes: 0 additions & 8 deletions src/arduino/ports/esp32/tusb_config_esp32.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,6 @@ extern "C" {
// with no OTG USB MCU such as eps32, c3 etc...
//--------------------------------------------------------------------

#ifndef CFG_TUSB_OS
#define CFG_TUSB_OS OPT_OS_FREERTOS

// clang-format off
#define CFG_TUSB_OS_INC_PATH freertos/
// clang-format on
#endif

// #ifndef CFG_TUSB_DEBUG
// #define CFG_TUSB_DEBUG 0
// #endif
Expand Down
6 changes: 6 additions & 0 deletions src/tusb_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@
// Note: when compiling core Arduino IDEs will include tusb_config.h in the BSP
// sdk/include/arduino_tinyusb/include. While compiling .c file in this library this
// file will be used instead. For consistency: include the one in BSP here as well
#include "sdkconfig.h"
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
#include "../../arduino_tinyusb/include/tusb_config.h"
#else
#define CFG_TUSB_OS OPT_OS_FREERTOS
// clang-format off
#define CFG_TUSB_OS_INC_PATH freertos/
// clang-format on

#include "arduino/ports/esp32/tusb_config_esp32.h"
#endif

Expand Down

0 comments on commit 2ca4b90

Please sign in to comment.