From ea54df2e772b94dfadb00455ae3642e036ec4427 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Fri, 28 Feb 2025 14:16:19 +0000 Subject: [PATCH] PPP2: Switch to CMake for PSRAM enable. --- micropython/board/PIMORONI_PICO_PLUS2/mpconfigboard.cmake | 4 ++++ micropython/board/PIMORONI_PICO_PLUS2/mpconfigboard.h | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/micropython/board/PIMORONI_PICO_PLUS2/mpconfigboard.cmake b/micropython/board/PIMORONI_PICO_PLUS2/mpconfigboard.cmake index 63092b6..8ce8a25 100644 --- a/micropython/board/PIMORONI_PICO_PLUS2/mpconfigboard.cmake +++ b/micropython/board/PIMORONI_PICO_PLUS2/mpconfigboard.cmake @@ -36,4 +36,8 @@ set(MICROPY_BLUETOOTH_BTSTACK ON) # MICROPY_PY_BLUETOOTH_CYW43 = 1 set(MICROPY_PY_BLUETOOTH_CYW43 ON) +# Sets: +# MICROPY_HW_ENABLE_PSRAM=1 +set(MICROPY_HW_ENABLE_PSRAM ON) + diff --git a/micropython/board/PIMORONI_PICO_PLUS2/mpconfigboard.h b/micropython/board/PIMORONI_PICO_PLUS2/mpconfigboard.h index 4d3e7bf..3ceede8 100644 --- a/micropython/board/PIMORONI_PICO_PLUS2/mpconfigboard.h +++ b/micropython/board/PIMORONI_PICO_PLUS2/mpconfigboard.h @@ -26,6 +26,5 @@ int mp_hal_is_pin_reserved(int n); #define MICROPY_HW_PIN_RESERVED(i) mp_hal_is_pin_reserved(i) // PSRAM Settings -#define MICROPY_HW_ENABLE_PSRAM (1) #define MICROPY_HW_PSRAM_CS_PIN PIMORONI_PICO_PLUS2_PSRAM_CS_PIN #define MICROPY_GC_SPLIT_HEAP (1)