Merge branch 'bugfix/cpu_cycle_count_not_iram' into 'master'

HAL: place cpu_ll_get_cycle_count in IRAM

Closes IDFGH-7431

See merge request espressif/esp-idf!18260
This commit is contained in:
Marius Vikhammer 2022-05-27 10:40:50 +08:00
commit 9177e9fb37
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ static inline uint32_t IRAM_ATTR cpu_ll_get_core_id(void)
return id;
}
static inline uint32_t cpu_ll_get_cycle_count(void)
static inline uint32_t IRAM_ATTR cpu_ll_get_cycle_count(void)
{
uint32_t result;
RSR(CCOUNT, result);

View File

@ -26,7 +26,7 @@ static inline uint32_t IRAM_ATTR cpu_ll_get_core_id(void)
return 0;
}
static inline uint32_t cpu_ll_get_cycle_count(void)
static inline uint32_t IRAM_ATTR cpu_ll_get_cycle_count(void)
{
uint32_t result;
RSR(CCOUNT, result);

View File

@ -30,7 +30,7 @@ static inline uint32_t IRAM_ATTR cpu_ll_get_core_id(void)
return id;
}
static inline uint32_t cpu_ll_get_cycle_count(void)
static inline uint32_t IRAM_ATTR cpu_ll_get_cycle_count(void)
{
uint32_t result;
RSR(CCOUNT, result);