Skip to content

Commit 04f62f3

Browse files
Xtensa_ESP32: Fix build issues when external SPIRAM is enabled
1 parent b97bb48 commit 04f62f3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

portable/ThirdParty/GCC/Xtensa_ESP32/include/portmacro.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@
8989

9090
#include <esp_heap_caps.h>
9191
#include "soc/soc_memory_layout.h"
92+
#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0))
93+
#include "soc/compare_set.h"
94+
#endif /* ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0) */
9295

9396
/*#include "xtensa_context.h" */
9497

portable/ThirdParty/GCC/Xtensa_ESP32/port.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ void vPortSetStackWatchpoint( void * pxStackStart )
484484
esp_set_watchpoint( 1, ( char * ) addr, 32, ESP_WATCHPOINT_STORE );
485485
}
486486

487+
#if (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(4, 2, 0))
488+
487489
#if defined( CONFIG_SPIRAM_SUPPORT )
488490

489491
/*
@@ -522,6 +524,7 @@ void vPortSetStackWatchpoint( void * pxStackStart )
522524
}
523525
#endif //defined(CONFIG_SPIRAM_SUPPORT)
524526

527+
#endif /* ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(4, 2, 0) */
525528

526529

527530
uint32_t xPortGetTickRateHz( void )

0 commit comments

Comments
 (0)