Skip to content

Commit 12091d3

Browse files
committed
mimxrt: Improve PSRAM implementation.
Enable PSRAM by default for Teensy 4.1, update license info, uncrustify psram.c and main.c, and remove FLASHMEM macro. Signed-off-by: Dryw Wade <[email protected]>
1 parent 402b90a commit 12091d3

File tree

4 files changed

+192
-210
lines changed

4 files changed

+192
-210
lines changed

ports/mimxrt/boards/TEENSY41/mpconfigboard.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,6 @@
136136
{ IOMUXC_GPIO_B1_11_ENET_RX_ER, 0, 0xB0E9u }, \
137137
{ IOMUXC_GPIO_B1_15_ENET_MDIO, 0, 0xB0E9u }, \
138138
{ IOMUXC_GPIO_B1_14_ENET_MDC, 0, 0xB0E9u },
139+
140+
// Enable PSRAM support
141+
#define MICROPY_HW_ENABLE_PSRAM (1)

ports/mimxrt/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int main(void) {
107107
mp_cstack_init_with_top(&_estack, &_estack - &_sstack);
108108

109109
#if MICROPY_HW_ENABLE_PSRAM
110-
if(psram_size) {
110+
if (psram_size) {
111111
#if MICROPY_GC_SPLIT_HEAP
112112
gc_init(&_gc_heap_start, &_gc_heap_end);
113113
gc_add((void *)PSRAM_BASE, (void *)(PSRAM_BASE + psram_size));

0 commit comments

Comments
 (0)