Skip to content

Commit be7e81c

Browse files
committed
ports/rp2: Enable split heap by default.
Enable split heap if PSRAM is enabled. This allows both the internal SRAM and PSRAM to be used as heap. Signed-off-by: Phil Howard <[email protected]>
1 parent 2024d5b commit be7e81c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/rp2/mpconfigport.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
#define MICROPY_GC_STACK_ENTRY_TYPE uint16_t
8383
#endif
8484
#ifndef MICROPY_GC_SPLIT_HEAP
85-
#define MICROPY_GC_SPLIT_HEAP (0) // whether PSRAM is added to or replaces the heap
85+
#define MICROPY_GC_SPLIT_HEAP MICROPY_HW_ENABLE_PSRAM // whether PSRAM is added to or replaces the heap
8686
#endif
8787
#define MICROPY_ALLOC_PATH_MAX (128)
8888
#define MICROPY_QSTR_BYTES_IN_HASH (1)

0 commit comments

Comments
 (0)