Skip to content

Commit 33e1c15

Browse files
SohKamYung-Espressifmantriyogesh
authored andcommitted
bugfix/spi_hd_cache Fix esp_cache compilation error when building for SPI-HD
Disable esp_cache.h include as esp_mm component no longer included in build for SPI-HD.
1 parent e61d908 commit 33e1c15

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

host/port/spi_hd_wrapper.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,16 @@
3333
#endif
3434

3535
#ifdef CONFIG_IDF_TARGET_ESP32P4
36-
#include "esp_cache.h"
3736
/* Enable workaround if got SPI Read Errors on ESP32-P4 due to caching */
3837
#define SPI_WORKAROUND (0)
3938
#else
4039
#define SPI_WORKAROUND (0)
4140
#endif
4241

42+
#if SPI_WORKAROUND
43+
#include "esp_cache.h"
44+
#endif
45+
4346
/* SPI_WORKAROUND requires DMA Aligned Buffers to be used */
4447
#if SPI_WORKAROUND && !USE_DMA_ALIGNED_BUF
4548
#error SPI_WORKAROUND and USE_DMA_ALIGNED_BUF must be enabled together

idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "0.0.20"
1+
version: "0.0.21"
22
description: ESP-Hosted provides driver such that any host can re-use ESP chipset as Wi-Fi or Bluetooth co-processor.
33
url: https://github.com/espressif/esp-hosted/tree/feature/esp_as_mcu_host
44
examples:

0 commit comments

Comments
 (0)