add flash and PSRAM CS IO acquire function

This commit is contained in:
chenjianqiang
2021-07-02 21:46:49 +08:00
committed by Li Shuai
parent 5fd169059d
commit 42039cde0a
10 changed files with 79 additions and 1 deletions

View File

@@ -376,6 +376,11 @@ void IRAM_ATTR esp_spiram_writeback_cache(void)
uint8_t esp_spiram_get_cs_io(void)
{
return psram_get_cs_io();
}
/*
Simple RAM test. Writes a word every 32 bytes. Takes about a second to complete for 4MiB. Returns
true when RAM seems OK, false when test fails. WARNING: Do not run this before the 2nd cpu has been
@@ -414,4 +419,5 @@ bool esp_spiram_test(void)
return true;
}
}
#endif