summaryrefslogtreecommitdiff
path: root/ports/esp32/gccollect.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/esp32/gccollect.c')
-rw-r--r--ports/esp32/gccollect.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ports/esp32/gccollect.c b/ports/esp32/gccollect.c
index 4b6dd8ab6..e6c17fda6 100644
--- a/ports/esp32/gccollect.c
+++ b/ports/esp32/gccollect.c
@@ -35,7 +35,7 @@
#include "py/mpthread.h"
#include "gccollect.h"
-#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
+#if CONFIG_IDF_TARGET_ARCH_XTENSA
#include "xtensa/hal.h"
@@ -61,8 +61,7 @@ void gc_collect(void) {
gc_collect_end();
}
-#elif CONFIG_IDF_TARGET_ESP32C3
-
+#elif CONFIG_IDF_TARGET_ARCH_RISCV
#include "shared/runtime/gchelper.h"
void gc_collect(void) {
@@ -74,6 +73,8 @@ void gc_collect(void) {
gc_collect_end();
}
+#else
+#error unknown CONFIG_IDF_TARGET_ARCH
#endif
#if MICROPY_GC_SPLIT_HEAP_AUTO