summaryrefslogtreecommitdiff
path: root/serial_link
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-03-12 22:37:04 +0200
committerFred Sundvik <fsundvik@gmail.com>2016-03-12 22:37:04 +0200
commitf7275f0edea61aa0b52160f5dbdeeddb1f0e7176 (patch)
tree448e0de1ed15fe6077fa1903643eb68ff469fda3 /serial_link
parentd835ad91a35afd4aa01a07a6907b846d5a32323d (diff)
Configurable baud setting
Diffstat (limited to 'serial_link')
-rw-r--r--serial_link/system/system.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/serial_link/system/system.c b/serial_link/system/system.c
index efd0991e9c..5406db3f48 100644
--- a/serial_link/system/system.c
+++ b/serial_link/system/system.c
@@ -50,10 +50,12 @@ host_driver_t serial_driver = {
send_consumer
};
+#ifndef SERIAL_LINK_BAUD
+#error "Serial link baud is not set"
+#endif
-// Slow speed for testing
static SerialConfig config = {
- .sc_speed = 38400
+ .sc_speed = SERIAL_LINK_BAUD
};
static uint32_t read_from_serial(SerialDriver* driver, uint8_t link) {