From ee5c26cf02900d8a7c1dd5efbdcfd36fe806a802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Sat, 18 Jul 2015 20:13:54 +0200 Subject: [PATCH] use fastest baudrate --- firmware/lib/uart.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/firmware/lib/uart.h b/firmware/lib/uart.h index dbb4d37..0b30f22 100644 --- a/firmware/lib/uart.h +++ b/firmware/lib/uart.h @@ -14,8 +14,10 @@ */ /* This library handles the USART configuration */ -/* set atmolight serial baudrate, in bits per second (with 8N1 8 bits, no parity bit, 1 stop bit settings) */ -#define BAUD 38400 +/* set tolerance to 3% to allow 115200 baudrate with 16 MHz clock */ +#define BAUD_TOL 3 +/* serial baudrate, in bits per second (with 8N1 8 bits, no parity bit, 1 stop bit settings) */ +#define BAUD 115200 /* input & output streams */ FILE uart_output;