mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Removed redundant preprocessor defs for UART AF
This commit is contained in:
parent
d6861b0842
commit
501f4a1345
6 changed files with 15 additions and 25 deletions
|
@ -242,7 +242,7 @@ uartPort_t *serialUART(UARTDevice_e device, uint32_t baudRate, portMode_e mode,
|
|||
s->txDMAPeripheralBaseAddr = (uint32_t)&s->USARTx->TDR;
|
||||
}
|
||||
|
||||
serialUARTInitIO(IOGetByTag(uartDev->tx), IOGetByTag(uartDev->rx), mode, options, hardware->af, device);
|
||||
serialUARTInitIO(IOGetByTag(uartDev->tx.pin), IOGetByTag(uartDev->rx.pin), mode, options, hardware->af, device);
|
||||
|
||||
if (!s->rxDMAChannel || !s->txDMAChannel) {
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue