mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-20 01:50:40 +00:00
add flash and PSRAM CS IO acquire function
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user