mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-12-18 23:03:15 +00:00
Fix module boot issue?
This commit is contained in:
@@ -1066,7 +1066,6 @@ void TelemetryUpdate()
|
||||
#else
|
||||
#ifdef STM32_BOARD
|
||||
usart3_begin(9600,SERIAL_8N1); //USART3
|
||||
USART3_BASE->CR1 &= ~ USART_CR1_RE; //disable RX leave TX enabled
|
||||
#else
|
||||
UBRR0H = 0x00;
|
||||
UBRR0L = 0x67;
|
||||
@@ -1087,7 +1086,6 @@ void TelemetryUpdate()
|
||||
#else
|
||||
#ifdef STM32_BOARD
|
||||
usart3_begin(57600,SERIAL_8N1); //USART3
|
||||
USART3_BASE->CR1 &= ~ USART_CR1_RE; //disable RX leave TX enabled
|
||||
#else
|
||||
UBRR0H = 0x00;
|
||||
UBRR0L = 0x22;
|
||||
@@ -1108,7 +1106,6 @@ void TelemetryUpdate()
|
||||
#else
|
||||
#ifdef STM32_BOARD
|
||||
usart3_begin(125000,SERIAL_8N1); //USART3
|
||||
USART3_BASE->CR1 &= ~ USART_CR1_RE; //disable RX leave TX enabled
|
||||
#else
|
||||
UBRR0H = 0x00;
|
||||
UBRR0L = 0x07;
|
||||
@@ -1159,12 +1156,6 @@ void TelemetryUpdate()
|
||||
}
|
||||
#ifdef STM32_BOARD
|
||||
}
|
||||
else if(USART3_BASE->SR & USART_SR_RXNE)
|
||||
{ //Should not get here...
|
||||
uint8_t dummy = USART3_BASE->DR;
|
||||
dummy++;
|
||||
USART3_BASE->CR1 &= ~ USART_CR1_RE; // Disable receive
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#else //BASH_SERIAL
|
||||
|
||||
Reference in New Issue
Block a user