1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-26 15:54:15 +01:00

REVONANO - Workaround an approximation bug in SPL UART code.

Due to some approximation bug in SPL 100000 gives a prescaler of 29 resulting in (48000000 / 29) / 16 (oversampling)  = 103448
99999 gives a nice 30 resulting in exactly 100000.
This commit is contained in:
Alessio Morale 2015-04-22 22:25:22 +02:00
parent 295ca38026
commit 04c067e8cd

View File

@ -356,7 +356,7 @@ static const struct pios_usart_cfg pios_usart_sbus_main_cfg = {
.regs = MAIN_USART_REGS, .regs = MAIN_USART_REGS,
.remap = MAIN_USART_REMAP, .remap = MAIN_USART_REMAP,
.init = { .init = {
.USART_BaudRate = 100000, .USART_BaudRate = 99999,
.USART_WordLength = USART_WordLength_8b, .USART_WordLength = USART_WordLength_8b,
.USART_Parity = USART_Parity_Even, .USART_Parity = USART_Parity_Even,
.USART_StopBits = USART_StopBits_2, .USART_StopBits = USART_StopBits_2,