Skip to content

Commit 6f420fa

Browse files
committed
require esp32 core at least 2.0.7
1 parent ffc744a commit 6f420fa

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/arduino/ports/esp32/tusb_config_esp32.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ extern "C" {
4545
//--------------------------------------------------------------------+
4646
#include "esp_arduino_version.h"
4747

48+
#if ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(2, 0, 7)
49+
#error "ESP32 Arduino core version 2.0.7 or later is required"
50+
#endif
51+
4852
#ifndef CFG_TUD_LOG_LEVEL
4953
#define CFG_TUD_LOG_LEVEL 2
5054
#endif
@@ -74,11 +78,6 @@ extern "C" {
7478
// Enable host stack with MAX3421E (host shield)
7579
#define CFG_TUH_ENABLED 1
7680
#define CFG_TUH_MAX_SPEED OPT_MODE_FULL_SPEED
77-
78-
#ifndef TUH_OPT_HIGH_SPEED
79-
#define TUH_OPT_HIGH_SPEED 0
80-
#endif
81-
8281
#define CFG_TUH_MAX3421 1
8382

8483
#ifndef CFG_TUH_MAX3421_ENDPOINT_TOTAL

src/tusb_option.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,7 @@
271271
#define TUSB_OPT_HOST_ENABLED CFG_TUH_ENABLED
272272

273273
// highspeed support indicator
274-
#ifndef TUH_OPT_HIGH_SPEED
275274
#define TUH_OPT_HIGH_SPEED (CFG_TUH_MAX_SPEED ? (CFG_TUH_MAX_SPEED & OPT_MODE_HIGH_SPEED) : TUP_RHPORT_HIGHSPEED)
276-
#endif
277275

278276
//--------------------------------------------------------------------+
279277
// TODO move later

0 commit comments

Comments
 (0)