From 2d49d59ba1335ed28cfdd7fc586be4e1637ebe9c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 4 Dec 2018 07:35:23 +0100 Subject: arduino-nano: change timer to new API --- src/arch/arduino-nano/driver/counter.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/arch/arduino-nano/driver') 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) -- cgit v1.2.3