mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-29 05:38:42 +00:00
soc/cpu: add non-xtensa-specific replacement of xthal_get_ccount
This commit is contained in:
@@ -131,4 +131,13 @@ static inline uint32_t esp_cpu_process_stack_pc(uint32_t pc)
|
|||||||
return pc - 3;
|
return pc - 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typedef uint32_t esp_cpu_ccount_t;
|
||||||
|
|
||||||
|
static inline esp_cpu_ccount_t esp_cpu_get_ccount(void)
|
||||||
|
{
|
||||||
|
uint32_t result;
|
||||||
|
RSR(CCOUNT, result);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -129,4 +129,13 @@ static inline uint32_t esp_cpu_process_stack_pc(uint32_t pc)
|
|||||||
return pc - 3;
|
return pc - 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typedef uint32_t esp_cpu_ccount_t;
|
||||||
|
|
||||||
|
static inline esp_cpu_ccount_t esp_cpu_get_ccount(void)
|
||||||
|
{
|
||||||
|
uint32_t result;
|
||||||
|
RSR(CCOUNT, result);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user