diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2016-03-12 22:37:04 +0200 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2016-03-12 22:37:04 +0200 |
commit | f7275f0edea61aa0b52160f5dbdeeddb1f0e7176 (patch) | |
tree | 448e0de1ed15fe6077fa1903643eb68ff469fda3 /serial_link | |
parent | d835ad91a35afd4aa01a07a6907b846d5a32323d (diff) |
Configurable baud setting
Diffstat (limited to 'serial_link')
-rw-r--r-- | serial_link/system/system.c | 6 |
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) { |