Skip to content

Commit

Permalink
Xtensa_ESP32: Fix build issues when external SPIRAM is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamkulkarni97 committed Aug 12, 2021
1 parent b97bb48 commit 04f62f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions portable/ThirdParty/GCC/Xtensa_ESP32/include/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" */

Expand Down
3 changes: 3 additions & 0 deletions portable/ThirdParty/GCC/Xtensa_ESP32/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

/*
Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit 04f62f3

Please sign in to comment.