From 04f8c27febe16d251880d92ff3b4aa08f344e48c Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 12 Jun 2019 14:59:00 -0700 Subject: [PATCH] clarify usart baudrates --- common/usart.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/common/usart.h b/common/usart.h index 5fa0873c9..ef0691df5 100644 --- a/common/usart.h +++ b/common/usart.h @@ -6,10 +6,13 @@ //#define USART_BAUD_RATE 9600 #define USART_BAUD_RATE 115200 + +// BT HC-06 physical layer runs at 128kbps +// so it's possible to gain a little bit by using 230400 +// with some risk to overflow its internal buffers: //#define USART_BAUD_RATE 230400 -//#define USART_BAUD_RATE 460800 -//#define USART_BAUD_RATE 921600 -//#define USART_BAUD_RATE 1382400 + +// Higher baudrates are pointless, only increasing overflow risk extern uint32_t usart_baudrate; #define USART_PARITY 'N'