Skip to content

Commit 05037cc

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 63ac299 commit 05037cc

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
@@ -92,7 +92,7 @@
9292
#define MICROPY_GC_STACK_ENTRY_TYPE uint16_t
9393
#endif
9494
#ifndef MICROPY_GC_SPLIT_HEAP
95-
#define MICROPY_GC_SPLIT_HEAP (0) // whether PSRAM is added to or replaces the heap
95+
#define MICROPY_GC_SPLIT_HEAP MICROPY_HW_ENABLE_PSRAM // whether PSRAM is added to or replaces the heap
9696
#endif
9797
#define MICROPY_ALLOC_PATH_MAX (128)
9898
#define MICROPY_QSTR_BYTES_IN_HASH (1)

0 commit comments

Comments
 (0)