HAL: place cpu_ll_get_cycle_count in IRAM

Closes https://github.com/espressif/esp-idf/issues/9008
This commit is contained in:
Marius Vikhammer
2022-05-26 14:37:56 +08:00
parent 57082d14a5
commit e595ae88d4
3 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,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

@@ -33,7 +33,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

@@ -38,7 +38,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);