From 0f253d11b622ca6a0408f7edbc26ec6553f34178 Mon Sep 17 00:00:00 2001 From: utzig Date: Mon, 17 Nov 2014 18:18:50 +0000 Subject: [AVR] Fixed checking for tickless mode git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7518 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/AVR/avr_timers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/ports/AVR/avr_timers.h') 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 -- cgit v1.2.3