summaryrefslogtreecommitdiff
path: root/src/arch/arduino-nano
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arduino-nano')
-rw-r--r--src/arch/arduino-nano/Kconfig5
-rw-r--r--src/arch/arduino-nano/Makefile.inc5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/arch/arduino-nano/Kconfig b/src/arch/arduino-nano/Kconfig
index 7054d44..39de647 100644
--- a/src/arch/arduino-nano/Kconfig
+++ b/src/arch/arduino-nano/Kconfig
@@ -22,7 +22,12 @@ config arch_arduino_nano_driver_timer
bool "Timer with Interrupts"
select meta_driver_timer
+config arch_arduino_nano_mega168
+bool "Cheap Hardware (ATMega168)"
+default n
+
choice arch_arduino_nano_timer1
+
bool "Timer 1"
optional
diff --git a/src/arch/arduino-nano/Makefile.inc b/src/arch/arduino-nano/Makefile.inc
index a3412fb..b1b76f1 100644
--- a/src/arch/arduino-nano/Makefile.inc
+++ b/src/arch/arduino-nano/Makefile.inc
@@ -4,6 +4,11 @@ MCU = atmega328p
SERIAL_PORT ?= /dev/ttyUSB0
BAUD = 57600
+ifdef CONFIG_arch_arduino_nano_mega168
+ MCU = atmega168
+ BAUD = 19200
+endif
+
cpu_freq ?= 16000000
COMMON_FLAGS += -Werror=overflow