diff --git a/os/hal/ports/AVR/st_lld.c b/os/hal/ports/AVR/st_lld.c index 97b35ba9b..ea470cb07 100644 --- a/os/hal/ports/AVR/st_lld.c +++ b/os/hal/ports/AVR/st_lld.c @@ -62,20 +62,45 @@ /* Find the most suitable prescaler setting for the desired OSAL_ST_FREQUENCY */ #if ((F_CPU / OSAL_ST_FREQUENCY) <= AVR_TIMER_COUNTER_MAX) + #define AVR_TIMER_PRESCALER 1 - #define AVR_TIMER_PRESCALER_BITS (0<