mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
bb76ee76ec4762eeb0bdda321ff5b1fe74c86252
Both bodies are one-liners: arch_get_cpu_cycle_count() -> esp_get_cycle_count() arch_get_cpu_freq_hz() -> F_CPU Move them inline in core/hal/hal_esp8266.h: - esp_get_cycle_count() comes from <core_esp8266_features.h> (now pulled into hal_esp8266.h, small ESP8266-only header). - F_CPU is a -DF_CPU=80000000L compiler flag from the ESP8266 Arduino board defs, available without any include. Drop the cross-platform arch_get_cpu_freq_hz() declaration from the dispatcher hal.h and add bare decls to hal_esp32.h / hal_libretiny.h / hal_rp2040.h / hal_host.h / hal_zephyr.h so subsequent per-platform follow-ups only touch their own platform header.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
545 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
