mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-02 07:16:00 +00:00
spi_flash: don't call vTaskDelay in non-os context
Fixes regression in core dump, when a crash happens in interrupt context.
This commit is contained in:
@@ -50,6 +50,9 @@ typedef struct {
|
||||
|
||||
/** Delay for at least 'us' microseconds. Called in between 'start' and 'end'. */
|
||||
esp_err_t (*delay_us)(void *arg, unsigned us);
|
||||
|
||||
/** Yield to other tasks. Called during erase operations. */
|
||||
esp_err_t (*yield)(void *arg);
|
||||
} esp_flash_os_functions_t;
|
||||
|
||||
/** @brief Structure to describe a SPI flash chip connected to the system.
|
||||
|
||||
Reference in New Issue
Block a user