Merge branch 'feature/c3_IDF-2554' into 'master'

global: Uses CCOUNT API instead of XTHAL macro

Closes IDF-2554

See merge request espressif/esp-idf!11954
This commit is contained in:
Angus Gratton
2021-01-13 12:55:21 +08:00
27 changed files with 78 additions and 47 deletions

View File

@@ -45,6 +45,11 @@ static inline uint32_t cpu_ll_get_cycle_count(void)
return result;
}
static inline void IRAM_ATTR cpu_ll_set_cycle_count(uint32_t val)
{
WSR(CCOUNT, val);
}
static inline void *cpu_ll_get_sp(void)
{
void *sp;