Skip to content

Commit

Permalink
[ESP-IDF5.1] Fix build issue ESP32-C3
Browse files Browse the repository at this point in the history
  • Loading branch information
TD-er committed Nov 12, 2023
1 parent cce494c commit e061147
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion platformio_core_defs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ lib_ignore =
;platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/1732/framework-arduinoespressif32-release_v5.1-4cafc60a00.zip
;platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/1752/framework-arduinoespressif32-release_v5.1_no_SECP256R1-e97d377907.zip
platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.10.12/platform-espressif32.zip
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/1785/framework-arduinoespressif32-release_v5.1-02b9e1c552.zip
platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/1786/framework-arduinoespressif32-release_v5.1-02b9e1c552.zip
build_flags = -DESP32_STAGE
-DESP_IDF_VERSION_MAJOR=5
-DLIBRARIES_NO_LOG=1
Expand Down
4 changes: 2 additions & 2 deletions src/include/esp32x_fixes.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
# define SPI_HOST SPI1_HOST
# define HSPI_HOST SPI2_HOST
# define VSPI_HOST SPI2_HOST /* No SPI3_host on C3 */
# if ESP_IDF_VERSION_MAJOR < 5
//# if ESP_IDF_VERSION_MAJOR < 5

// fix a bug in esp-idf 4.4 for esp32c3
# ifndef REG_SPI_BASE
Expand All @@ -83,7 +83,7 @@
// SPI_MOSI_DLEN_REG is not defined anymore in esp32c3, instead use SPI_MS_DLEN_REG
# define SPI_MOSI_DLEN_REG(x) SPI_MS_DLEN_REG(x)
# endif // REG_SPI_BASE
# endif // ESP_IDF_VERSION_MAJOR < 5
//# endif // ESP_IDF_VERSION_MAJOR < 5

#elif CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C6
# define SPI_HOST SPI1_HOST
Expand Down

0 comments on commit e061147

Please sign in to comment.