mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
3c5e7b89ab
spi_flash_generic_timeout is currently defined in the header file, which makes it a common symbol between translation units where this header file is included. It is also defined in spi_flash_chip_generic.c. Add an explicit `extern` to prevent multiple definition errors.
See the spi_flash.rst in the programming guide folder for more details. The docs above is for the new SPI Flash API above 4.0, for legacy implementation (CONFIG_SPI_FLASH_USE_LEGACY_IMPL enabled), read README_legayc.rst in the same folder with this readme.