mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-12-06 07:37:38 +00:00
STM32: USART init changed
This commit is contained in:
1 parent
22529e28d8
commit
4348f4b0d4
2 files changed
+21
-6
No files matched your search
@@ -938,8 +938,8 @@ void Mprotocol_serial_init()
|
||||
PORTC.PIN3CTRL |= 0x40 ;
|
||||
#endif
|
||||
#elif defined STM32_BOARD
|
||||
Serial1.begin(100000,SERIAL_8E2);//USART2
|
||||
Serial2.begin(100000,SERIAL_8E2);//USART3
|
||||
usart2_begin(100000,SERIAL_8E2);
|
||||
usart3_begin(100000,SERIAL_8E2);
|
||||
USART2_BASE->CR1 |= USART_CR1_PCE_BIT;
|
||||
USART3_BASE->CR1 &= ~ USART_CR1_RE;//disable
|
||||
USART2_BASE->CR1 &= ~ USART_CR1_TE;//disable transmit
|
||||
|
||||
Reference in new issue
Block a user