From 5dc43bd62d92ff3bae829ac66fc9cc2b4763345c Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 9 Jan 2024 23:07:20 +0100 Subject: [PATCH] cpu/avr8_common: AVR-8 needs 7 cycles per busy loop --- cpu/avr8_common/include/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpu/avr8_common/include/cpu.h b/cpu/avr8_common/include/cpu.h index 6e183661e7..c9f5c63a3d 100644 --- a/cpu/avr8_common/include/cpu.h +++ b/cpu/avr8_common/include/cpu.h @@ -57,6 +57,11 @@ extern "C" #endif /** @} */ +/** + * @brief CPU cycles per busy wait loop + */ +#define CPU_CYCLES_PER_LOOP (7) + /** * @name Use shared I2C functions * @{