diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/AVR/avr_timers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/AVR/avr_timers.h b/os/hal/ports/AVR/avr_timers.h index b0a137ddd..9bd136779 100644 --- a/os/hal/ports/AVR/avr_timers.h +++ b/os/hal/ports/AVR/avr_timers.h @@ -19,7 +19,7 @@ #include "mcuconf.h"
-#if ((NIL_CFG_ST_TIMEDELTA > 0 || CH_CFG_ST_TIMEDELTA > 0) && \
+#if ((OSAL_ST_MODE == OSAL_ST_MODE_FREERUNNING) && \
(AVR_GPT_USE_TIM1 || AVR_PWM_USE_TIM1 || AVR_ICU_USE_TIM1))
#error "Timer 1 cannot be used by drivers when running in tickless mode."
#endif
|