diff options
| author | Phil Howard <phil@gadgetoid.com> | 2024-08-06 19:49:40 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-04-08 10:56:59 +1000 |
| commit | 11f057dd9a5801e23b39822b3a57cbfa8cd10f00 (patch) | |
| tree | 83277e1d58155b8f30cd3a6b7cfa03220f0feabb /extmod/modmachine.c | |
| parent | 9e9be83fd69a36bf82019d1ecfcafa3b317ae899 (diff) | |
rp2: Add support for PSRAM with auto-detection.
Performs a best-effort attempt to detect attached PSRAM, configure it and
*add* it to the MicroPython heap. If PSRAM is not present, should fall
back to use internal RAM.
Introduce two new port/board defines:
- MICROPY_HW_ENABLE_PSRAM to enable PSRAM.
- MICROPY_HW_PSRAM_CS_PIN to define the chip-select pin (required).
Changes are:
- ports/rp2/rp2_psram.[ch]: Add new PSRAM module.
- ports/rp2/main.c: Add optional PSRAM support.
- ports/rp2/CMakeLists.txt: Include rp2_psram.c.
- ports/rp2/mpconfigport.h: Add MICROPY_HW_ENABLE_PSRAM.
- ports/rp2/modmachine.c: Reconfigure PSRAM on freq change.
Co-authored-by: Kirk Benell <kirk.benell@sparkfun.com>
Co-authored-by: Mike Bell <mike@mercuna.com>
Signed-off-by: Phil Howard <phil@gadgetoid.com>
Diffstat (limited to 'extmod/modmachine.c')
0 files changed, 0 insertions, 0 deletions
