kopia lustrzana https://github.com/espressif/esp-idf
HAL: place cpu_ll_get_cycle_count in IRAM
Closes https://github.com/espressif/esp-idf/issues/9008pull/9068/head
rodzic
7642be45ef
commit
415ab25a49
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue