summaryrefslogtreecommitdiff
path: root/src/arch/arduino-nano/driver
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-12-04 07:35:23 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-12-04 07:35:23 +0100
commit2d49d59ba1335ed28cfdd7fc586be4e1637ebe9c (patch)
treef1c54acefd9e0fd43e9e50203e58678ec95b1ac6 /src/arch/arduino-nano/driver
parent51c4aca4432963af11db0d85b9ddb4ff2d50fc60 (diff)
arduino-nano: change timer to new API
Diffstat (limited to 'src/arch/arduino-nano/driver')
-rw-r--r--src/arch/arduino-nano/driver/counter.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/arduino-nano/driver/counter.cc b/src/arch/arduino-nano/driver/counter.cc
index 4e62983..894a882 100644
--- a/src/arch/arduino-nano/driver/counter.cc
+++ b/src/arch/arduino-nano/driver/counter.cc
@@ -1,5 +1,9 @@
#include "driver/counter.h"
+#if defined(TIMER_S) || defined(WITH_LOOP)
+#warn "timer/loop and counter are mutually exclusive. Expect odd behaviour."
+#endif
+
Counter counter;
ISR(TIMER1_OVF_vect)