mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
Merge branch 'master' into feature/esp32s2beta_merge
This commit is contained in:
@@ -25,13 +25,15 @@
|
||||
#include "esp32s2beta/rom/cache.h"
|
||||
#endif
|
||||
|
||||
static esp_err_t start(void *arg)
|
||||
|
||||
static IRAM_ATTR esp_err_t start(void *arg)
|
||||
{
|
||||
Cache_Read_Disable(0);
|
||||
Cache_Read_Disable(1);
|
||||
return ESP_OK;
|
||||
}
|
||||
static esp_err_t end(void *arg)
|
||||
|
||||
static IRAM_ATTR esp_err_t end(void *arg)
|
||||
{
|
||||
Cache_Flush(0);
|
||||
Cache_Flush(1);
|
||||
@@ -40,14 +42,21 @@ static esp_err_t end(void *arg)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
static esp_err_t delay_ms(void *arg, unsigned ms)
|
||||
static IRAM_ATTR esp_err_t delay_ms(void *arg, unsigned ms)
|
||||
{
|
||||
ets_delay_us(1000 * ms);
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
const esp_flash_os_functions_t esp_flash_noos_functions = {
|
||||
const DRAM_ATTR esp_flash_os_functions_t esp_flash_noos_functions = {
|
||||
.start = start,
|
||||
.end = end,
|
||||
.delay_ms = delay_ms,
|
||||
.region_protected = NULL,
|
||||
};
|
||||
|
||||
esp_err_t IRAM_ATTR esp_flash_app_disable_os_functions(esp_flash_t* chip)
|
||||
{
|
||||
chip->os_func = &esp_flash_noos_functions;
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user