aboutsummaryrefslogtreecommitdiffhomepage
path: root/components/esp8266/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'components/esp8266/core.cpp')
-rw-r--r--components/esp8266/core.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/esp8266/core.cpp b/components/esp8266/core.cpp
index 51f3ca5..828d71a 100644
--- a/components/esp8266/core.cpp
+++ b/components/esp8266/core.cpp
@@ -20,6 +20,7 @@ void arch_restart() {
yield();
}
}
+void arch_init() {}
void IRAM_ATTR HOT arch_feed_wdt() {
ESP.wdtFeed(); // NOLINT(readability-static-accessed-through-instance)
}
@@ -27,7 +28,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; }