From 8bcfe7b7b65e88e10dd18852af29d1e1fe29a4b7 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 9 Jan 2024 23:20:35 +0100 Subject: [PATCH] cpu/esp8266: ESP8266 needs 5 cycles per busy loop --- cpu/esp8266/include/periph_cpu.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpu/esp8266/include/periph_cpu.h b/cpu/esp8266/include/periph_cpu.h index 63905996e1..cb84b376cf 100644 --- a/cpu/esp8266/include/periph_cpu.h +++ b/cpu/esp8266/include/periph_cpu.h @@ -34,6 +34,11 @@ extern "C" { */ #define CPUID_LEN (4U) +/** + * @brief CPU cycles per busy wait loop + */ +#define CPU_CYCLES_PER_LOOP (5) + /** * @name GPIO configuration * @{