mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-03 06:58:11 +00:00
global: Uses CCOUNT API instead of XTHAL macro
This commit is contained in:
@@ -55,6 +55,11 @@ static inline uint32_t IRAM_ATTR cpu_ll_get_cycle_count(void)
|
||||
return result;
|
||||
}
|
||||
|
||||
static inline void IRAM_ATTR cpu_ll_set_cycle_count(uint32_t val)
|
||||
{
|
||||
RV_WRITE_CSR(CSR_PCCR_MACHINE, val);
|
||||
}
|
||||
|
||||
static inline void* cpu_ll_get_sp(void)
|
||||
{
|
||||
void *sp;
|
||||
|
Reference in New Issue
Block a user