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 | |
| parent | d835ad91a35afd4aa01a07a6907b846d5a32323d (diff) | |
| download | qmk_firmware-f7275f0edea61aa0b52160f5dbdeeddb1f0e7176.tar.gz qmk_firmware-f7275f0edea61aa0b52160f5dbdeeddb1f0e7176.zip | |
Configurable baud setting
| -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 efd0991e9..5406db3f4 100644 --- a/serial_link/system/system.c +++ b/serial_link/system/system.c | |||
| @@ -50,10 +50,12 @@ host_driver_t serial_driver = { | |||
| 50 | send_consumer | 50 | send_consumer |
| 51 | }; | 51 | }; |
| 52 | 52 | ||
| 53 | #ifndef SERIAL_LINK_BAUD | ||
| 54 | #error "Serial link baud is not set" | ||
| 55 | #endif | ||
| 53 | 56 | ||
| 54 | // Slow speed for testing | ||
| 55 | static SerialConfig config = { | 57 | static SerialConfig config = { |
| 56 | .sc_speed = 38400 | 58 | .sc_speed = SERIAL_LINK_BAUD |
| 57 | }; | 59 | }; |
| 58 | 60 | ||
| 59 | static uint32_t read_from_serial(SerialDriver* driver, uint8_t link) { | 61 | static uint32_t read_from_serial(SerialDriver* driver, uint8_t link) { |
