bootloader_efuse: Adds IRAM_ATTR for efuse API

Fixes startup of app for case:
bootloader with 40Mhz and app with 80Mhz (ESPTOOLPY_FLASHFREQ)

Closes https://github.com/espressif/esp-idf/issues/9156
This commit is contained in:
KonstantinKondrashov
2022-06-15 15:31:33 +08:00
parent 919344547b
commit c4bdcf3207

View File

@@ -9,13 +9,14 @@
#include "bootloader_common.h" #include "bootloader_common.h"
#include "hal/efuse_ll.h" #include "hal/efuse_ll.h"
#include "hal/efuse_hal.h" #include "hal/efuse_hal.h"
#include "esp_attr.h"
uint8_t bootloader_common_get_chip_revision(void) IRAM_ATTR uint8_t bootloader_common_get_chip_revision(void)
{ {
return efuse_hal_get_chip_revision(); return efuse_hal_get_chip_revision();
} }
uint32_t bootloader_common_get_chip_ver_pkg(void) IRAM_ATTR uint32_t bootloader_common_get_chip_ver_pkg(void)
{ {
return efuse_ll_get_chip_ver_pkg(); return efuse_ll_get_chip_ver_pkg();
} }