summaryrefslogtreecommitdiff
path: root/serial_link
diff options
context:
space:
mode:
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) {