diff options
Diffstat (limited to 'src/arch/arduino-nano/driver/counter.cc')
-rw-r--r-- | src/arch/arduino-nano/driver/counter.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/arch/arduino-nano/driver/counter.cc b/src/arch/arduino-nano/driver/counter.cc new file mode 100644 index 0000000..4e62983 --- /dev/null +++ b/src/arch/arduino-nano/driver/counter.cc @@ -0,0 +1,10 @@ +#include "driver/counter.h" + +Counter counter; + +ISR(TIMER1_OVF_vect) +{ + if (counter.overflowed < 255) { + counter.overflowed++; + } +} |