Xtensa_ESP32: Fix build issues when external SPIRAM is enabled (#381)

Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
This commit is contained in:
Shubham Kulkarni 2021-08-13 06:16:25 +05:30 committed by GitHub
parent d858d1ff36
commit 6ba8aa63c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,9 @@
#include <esp_heap_caps.h>
#include "soc/soc_memory_layout.h"
#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0))
#include "soc/compare_set.h"
#endif /* ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0) */
/*#include "xtensa_context.h" */

View File

@ -484,6 +484,8 @@ void vPortSetStackWatchpoint( void * pxStackStart )
esp_set_watchpoint( 1, ( char * ) addr, 32, ESP_WATCHPOINT_STORE );
}
#if (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(4, 2, 0))
#if defined( CONFIG_SPIRAM_SUPPORT )
/*
@ -522,6 +524,7 @@ void vPortSetStackWatchpoint( void * pxStackStart )
}
#endif //defined(CONFIG_SPIRAM_SUPPORT)
#endif /* ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(4, 2, 0) */
uint32_t xPortGetTickRateHz( void )