spi_flash: Support suspend/resume mode for operations

- Adds arbitration between the erase and write in suspend mode
     (If the flash memory is suspended then only a read operation can be performed.)
- espcoredump: Dump does not use suspend feature, just resume before continue.
- spi_flash: Add release_cpu() to do suspend/release_cpu/resume
This commit is contained in:
KonstantinKondrashov
2020-04-25 04:12:43 +08:00
committed by Cao Sen Miao
parent 728801883e
commit afef16c2e9
3 changed files with 5 additions and 2 deletions
@@ -266,7 +266,7 @@ typedef volatile struct spi_mem_dev_s {
};
uint32_t val;
} fsm;
uint32_t data_buf[18]; /*data buffer*/
uint32_t data_buf[16]; /*data buffer*/
union {
struct {
uint32_t waiti_en: 1; /*auto-waiting flash idle operation when program flash or erase flash. 1: enable 0: disable.*/