mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
STM32F4: USARTS 4,5,6 added
Flag initialisation for motor_pwm_protocol Fixes for AlienFlightF4 and timers
This commit is contained in:
parent
6bf35e09ce
commit
51a99e74c6
31 changed files with 5476 additions and 57 deletions
|
@ -108,6 +108,19 @@ serialPort_t *uartOpen(USART_TypeDef *USARTx, serialReceiveCallbackPtr callback,
|
|||
} else if (USARTx == USART3) {
|
||||
s = serialUSART3(baudRate, mode, options);
|
||||
#endif
|
||||
#ifdef USE_USART4
|
||||
} else if (USARTx == UART4) {
|
||||
s = serialUSART4(baudRate, mode, options);
|
||||
#endif
|
||||
#ifdef USE_USART5
|
||||
} else if (USARTx == UART5) {
|
||||
s = serialUSART5(baudRate, mode, options);
|
||||
#endif
|
||||
#ifdef USE_USART6
|
||||
} else if (USARTx == USART6) {
|
||||
s = serialUSART6(baudRate, mode, options);
|
||||
#endif
|
||||
|
||||
} else {
|
||||
return (serialPort_t *)s;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue