summaryrefslogtreecommitdiff
path: root/src/arch/arduino-nano/Makefile.inc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-08-17 13:53:33 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-08-17 13:53:33 +0200
commit29414b3003eafb1fd82c14893fb64805dae818b8 (patch)
treee291437527c024a28f9b16cf82689cc43ff43332 /src/arch/arduino-nano/Makefile.inc
parentf6972a43581b24281b322a6f8d2bf02dafbe4433 (diff)
add timer-supported software i2c + arduino-nano timer
Diffstat (limited to 'src/arch/arduino-nano/Makefile.inc')
-rw-r--r--src/arch/arduino-nano/Makefile.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/arduino-nano/Makefile.inc b/src/arch/arduino-nano/Makefile.inc
index 18a6563..d4d5be7 100644
--- a/src/arch/arduino-nano/Makefile.inc
+++ b/src/arch/arduino-nano/Makefile.inc
@@ -4,6 +4,7 @@ MCU = atmega328p
PORT = /dev/ttyUSB0
BAUD = 57600
+COMMON_FLAGS += -Werror=overflow
COMMON_FLAGS += -mmcu=${MCU} -DF_CPU=16000000UL -DMULTIPASS_ARCH_arduino_nano
COMMON_FLAGS += -flto
COMMON_FLAGS += -DMULTIPASS_ARCH_HAS_I2C
@@ -32,10 +33,18 @@ ifneq ($(findstring stdin,${arch_drivers}), )
TARGETS += src/arch/arduino-nano/driver/stdin.cc
endif
+ifneq ($(findstring timer,${arch_drivers}), )
+ TARGETS += src/arch/arduino-nano/driver/timer.cc
+endif
+
ifneq (${i2c_freq}, )
COMMON_FLAGS += -DF_I2C=${i2c_freq}
endif
+ifneq (${timer_freq}, )
+ COMMON_FLAGS += -DF_TIMER=${timer_freq}
+endif
+
OBJECTS = ${TARGETS:.cc=.o}
.cc.o: