summaryrefslogtreecommitdiff
path: root/src/arch/arduino-nano/driver
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-10-19 09:01:36 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-10-19 09:01:36 +0200
commit255085d06a75c424cd6b95aaac10056e5de65876 (patch)
tree345a6bb1772089e4928e88f5035648f82b51531e /src/arch/arduino-nano/driver
parent458c89d71c3aa22eb5e83d4e34930a8978c0ef7e (diff)
arduino nano: support additional CPU frequencies
Diffstat (limited to 'src/arch/arduino-nano/driver')
-rw-r--r--src/arch/arduino-nano/driver/stdout.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/arduino-nano/driver/stdout.cc b/src/arch/arduino-nano/driver/stdout.cc
index a3d905d..58ff440 100644
--- a/src/arch/arduino-nano/driver/stdout.cc
+++ b/src/arch/arduino-nano/driver/stdout.cc
@@ -2,7 +2,10 @@
#include <avr/io.h>
#include <avr/interrupt.h>
-#define BAUD 119200L
+#ifndef BAUD
+#define BAUD 9600UL
+#endif
+
#include <util/setbaud.h>
void StandardOutput::setup()