Skip to content

Commit

Permalink
Merge branch 'bugfix/spi_hd_cache' into 'feature/esp_as_mcu_host'
Browse files Browse the repository at this point in the history
bugfix/spi_hd_cache Fix esp_cache compilation error when building for SPI-HD

See merge request app-frameworks/esp_hosted!525
  • Loading branch information
mantriyogesh committed Oct 11, 2024
2 parents e61d908 + 33e1c15 commit f28b1b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion host/port/spi_hd_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@
#endif

#ifdef CONFIG_IDF_TARGET_ESP32P4
#include "esp_cache.h"
/* Enable workaround if got SPI Read Errors on ESP32-P4 due to caching */
#define SPI_WORKAROUND (0)
#else
#define SPI_WORKAROUND (0)
#endif

#if SPI_WORKAROUND
#include "esp_cache.h"
#endif

/* SPI_WORKAROUND requires DMA Aligned Buffers to be used */
#if SPI_WORKAROUND && !USE_DMA_ALIGNED_BUF
#error SPI_WORKAROUND and USE_DMA_ALIGNED_BUF must be enabled together
Expand Down
2 changes: 1 addition & 1 deletion idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "0.0.20"
version: "0.0.21"
description: ESP-Hosted provides driver such that any host can re-use ESP chipset as Wi-Fi or Bluetooth co-processor.
url: https://github.com/espressif/esp-hosted/tree/feature/esp_as_mcu_host
examples:
Expand Down

0 comments on commit f28b1b1

Please sign in to comment.