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

REVONANO - workaround the issue with usart baud rate rounding changing slightly the Xtal frequency.

Remove the former sbus rate issue workaround
This commit is contained in:
Alessio Morale 2015-06-01 18:57:29 +02:00
parent 508d55c9a6
commit 1985f19fc0
2 changed files with 4 additions and 3 deletions

View File

@ -40,6 +40,7 @@ FW_BANK_BASE := 0x08010000 # Start of firmware flash
FW_BANK_SIZE := 0x00070000 # Should include FW_DESC_SIZE
FW_DESC_SIZE := 0x00000064
OSCILLATOR_FREQ := 8000000
# Quartz frequency is actually 8000000.
# The following value fixes several rounding errors on uart baud rates calculations
OSCILLATOR_FREQ := 7999999
SYSCLK_FREQ := 96000000

View File

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