Skip to content

Commit

Permalink
esp32s3_textheap.c: fix a build error w/o CONFIG_ESP32S3_SPIRAM
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt authored and xiaoxiang781216 committed Jul 18, 2024
1 parent de3737c commit 985d395
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/xtensa/src/esp32s3/esp32s3_textheap.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ IRAM_ATTR void up_textheap_data_sync(void)
{
irqstate_t flags = enter_critical_section();

#ifdef CONFIG_ESP32S3_SPIRAM
esp_spiram_writeback_cache();
#endif
cache_hal_disable(CACHE_TYPE_INSTRUCTION);
cache_hal_enable(CACHE_TYPE_INSTRUCTION);

Expand Down

0 comments on commit 985d395

Please sign in to comment.