aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/AVR/avr_timers.h
diff options
context:
space:
mode:
authorutzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-17 18:18:50 +0000
committerutzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-17 18:18:50 +0000
commit0f253d11b622ca6a0408f7edbc26ec6553f34178 (patch)
tree424c7e869a4eb97ad91df72fbbc9181d58eb4421 /os/hal/ports/AVR/avr_timers.h
parent28af17c090856082986e46a153fc58e7061a632f (diff)
downloadChibiOS-0f253d11b622ca6a0408f7edbc26ec6553f34178.tar.gz
ChibiOS-0f253d11b622ca6a0408f7edbc26ec6553f34178.tar.bz2
ChibiOS-0f253d11b622ca6a0408f7edbc26ec6553f34178.zip
[AVR] Fixed checking for tickless mode
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7518 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/AVR/avr_timers.h')
-rw-r--r--os/hal/ports/AVR/avr_timers.h2
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