mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
commit
9177e9fb37
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user