mirror of
https://github.com/esphome/esphome.git
synced 2024-11-13 02:37:47 +01:00
Declare arch_get_cpu_cycle_count for esp8266 as IRAM (#2843)
This commit is contained in:
parent
1ec3140759
commit
24a5325db3
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ void IRAM_ATTR HOT arch_feed_wdt() {
|
|||
uint8_t progmem_read_byte(const uint8_t *addr) {
|
||||
return pgm_read_byte(addr); // NOLINT
|
||||
}
|
||||
uint32_t arch_get_cpu_cycle_count() {
|
||||
uint32_t IRAM_ATTR HOT arch_get_cpu_cycle_count() {
|
||||
return ESP.getCycleCount(); // NOLINT(readability-static-accessed-through-instance)
|
||||
}
|
||||
uint32_t arch_get_cpu_freq_hz() { return F_CPU; }
|
||||
|
|
Loading…
Reference in a new issue