Configurable baud setting

daktil_thumb_popravljen
Fred Sundvik 2016-03-12 22:37:04 +02:00
parent d835ad91a3
commit f7275f0ede
1 changed files with 4 additions and 2 deletions

View File

@ -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) {