components/spi_flash: make spi_flash APIs dual-core-compatible

See esp_spi_flash.c for implementation notes.
This commit is contained in:
Ivan Grokhotkov
2016-08-24 18:01:01 +08:00
parent 29c2e58c75
commit dec846a953
2 changed files with 197 additions and 70 deletions

View File

@@ -28,6 +28,15 @@ extern "C" {
#define SPI_FLASH_SEC_SIZE 4096 /**< SPI Flash sector size */
/**
* @brief Initialize SPI flash access driver
*
* This function must be called exactly once, before any other
* spi_flash_* functions are called.
*
*/
void spi_flash_init();
/**
* @brief Erase the Flash sector.
*