File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ set(MICROPY_SOURCE_PORT
165
165
pendsv.c
166
166
rp2_flash.c
167
167
rp2_pio.c
168
- rp2_psram.c
169
168
rp2_dma.c
170
169
uart.c
171
170
usbd.c
@@ -174,6 +173,12 @@ set(MICROPY_SOURCE_PORT
174
173
${CMAKE_BINARY_DIR} /pins_${MICROPY_BOARD}.c
175
174
)
176
175
176
+ if (PICO_RP2350 )
177
+ list (APPEND MICROPY_SOURCE_PORT
178
+ rp2_psram.c
179
+ )
180
+ endif ()
181
+
177
182
set (MICROPY_SOURCE_QSTR
178
183
${MICROPY_SOURCE_PY}
179
184
${MICROPY_DIR} /shared/readline/readline.c
Original file line number Diff line number Diff line change @@ -89,11 +89,13 @@ static uint32_t begin_critical_flash_section(void) {
89
89
}
90
90
uint32_t state = save_and_disable_interrupts ();
91
91
92
+ #if defined(MICROPY_HW_PSRAM_CS_PIN ) && MICROPY_HW_ENABLE_PSRAM
92
93
// We're about to invalidate the XIP cache, clean it first to commit any dirty writes to PSRAM
93
94
uint8_t * maintenance_ptr = (uint8_t * )XIP_MAINTENANCE_BASE ;
94
95
for (int i = 1 ; i < 16 * 1024 ; i += 8 ) {
95
96
maintenance_ptr [i ] = 0 ;
96
97
}
98
+ #endif
97
99
98
100
return state ;
99
101
}
You can’t perform that action at this time.
0 commit comments