Allow selecting higher baud rates (#640)
* higher baud rates * Update colorlcd models to support selectable baud tp 3.75M # Conflicts: # radio/src/gui/colorlcd/radio_hardware.cpp Co-authored-by: Jye <JyeSmith@users.noreply.github.com> Co-authored-by: Paul Kendall <pkendall64@gmail.com>
This commit is contained in:
@@ -57,12 +57,15 @@ void telemetryPortInit(uint32_t baudrate, uint8_t mode)
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
|
||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_25MHz;
|
||||
GPIO_Init(TELEMETRY_GPIO, &GPIO_InitStructure);
|
||||
|
||||
telemetryInitDirPin();
|
||||
|
||||
USART_DeInit(TELEMETRY_USART);
|
||||
|
||||
USART_OverSampling8Cmd(TELEMETRY_USART, ENABLE);
|
||||
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
USART_InitStructure.USART_BaudRate = baudrate;
|
||||
if (mode & TELEMETRY_SERIAL_8E2) {
|
||||
|
||||
Reference in New Issue
Block a user