mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -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;
|
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;
|
uint32_t result;
|
||||||
RSR(CCOUNT, result);
|
RSR(CCOUNT, result);
|
||||||
|
@ -26,7 +26,7 @@ static inline uint32_t IRAM_ATTR cpu_ll_get_core_id(void)
|
|||||||
return 0;
|
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;
|
uint32_t result;
|
||||||
RSR(CCOUNT, result);
|
RSR(CCOUNT, result);
|
||||||
|
@ -30,7 +30,7 @@ static inline uint32_t IRAM_ATTR cpu_ll_get_core_id(void)
|
|||||||
return id;
|
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;
|
uint32_t result;
|
||||||
RSR(CCOUNT, result);
|
RSR(CCOUNT, result);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user