mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Ditto for F4
This commit is contained in:
parent
d074cafd39
commit
3fe8c4b53b
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ uartPort_t *serialUART(UARTDevice device, uint32_t baudRate, portMode_t mode, po
|
||||||
RCC_AHB1PeriphClockCmd(uart->rcc_ahb1, ENABLE);
|
RCC_AHB1PeriphClockCmd(uart->rcc_ahb1, ENABLE);
|
||||||
|
|
||||||
if (options & SERIAL_BIDIR) {
|
if (options & SERIAL_BIDIR) {
|
||||||
IOInit(tx, OWNER_SERIAL, RESOURCE_UART_TXRX, RESOURCE_INDEX(device));
|
IOInit(tx, OWNER_SERIAL_TX, RESOURCE_INDEX(device));
|
||||||
if (options & SERIAL_BIDIR_PP)
|
if (options & SERIAL_BIDIR_PP)
|
||||||
IOConfigGPIOAF(tx, IOCFG_AF_PP, uart->af);
|
IOConfigGPIOAF(tx, IOCFG_AF_PP, uart->af);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue