File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 2424#include < hardware/structs/qmi.h>
2525#endif
2626
27- #if defined(RP2350_PSRAM_CS)
27+ #if defined(PICO_RP2350) && defined( RP2350_PSRAM_CS)
2828static volatile uint32_t __wastedsum = 0 ;
2929static void __no_inline_not_in_flash_func (flushcache)() {
3030 // for (volatile uint8_t* cache = (volatile uint8_t*)0x18000001; cache < (volatile uint8_t*)(0x18000001 + 2048 * 8); cache += 8) {
@@ -36,12 +36,13 @@ static void __no_inline_not_in_flash_func(flushcache)() {
3636 }
3737 __wastedsum += sum;
3838}
39- #else
40- static uint32_t flushcache () {
41- return 0 ;
39+ #elif defined(PICO_RP2350)
40+ static void __no_inline_not_in_flash_func ( flushcache) () {
41+ // Null
4242}
4343#endif
4444
45+
4546extern " C" {
4647 extern void __real_flash_range_erase (uint32_t flash_offs, size_t count);
4748 void __wrap_flash_range_erase (uint32_t flash_offs, size_t count) {
You can’t perform that action at this time.
0 commit comments