Added baud rate changing on the fly to serial pass through

This commit is contained in:
Raphael Coeffic
2021-11-21 11:18:35 +01:00
committed by Raphael Coeffic
parent f3301e6210
commit c5c2829c24
2 changed files with 26 additions and 6 deletions
@@ -133,8 +133,6 @@ void intmoduleSerialStart(const etx_serial_init* params)
USART_Cmd(INTMODULE_USART, ENABLE);
if (params->rx_enable) {
// TODO: move into the caller
intmoduleFifo.clear();
USART_ITConfig(INTMODULE_USART, USART_IT_RXNE, ENABLE);
NVIC_SetPriority(INTMODULE_USART_IRQn, 6);
NVIC_EnableIRQ(INTMODULE_USART_IRQn);