mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
NucleoF7 board support
This commit is contained in:
parent
5ee5ec1358
commit
7c6d3efa13
9 changed files with 712 additions and 4 deletions
|
@ -179,8 +179,11 @@ serialPort_t *uartOpen(USART_TypeDef *USARTx, serialReceiveCallbackPtr callback,
|
|||
{
|
||||
uartPort_t *s = NULL;
|
||||
|
||||
if (USARTx == USART1) {
|
||||
if (false) {
|
||||
#ifdef USE_UART1
|
||||
} else if (USARTx == USART1) {
|
||||
s = serialUART1(baudRate, mode, options);
|
||||
#endif
|
||||
#ifdef USE_UART2
|
||||
} else if (USARTx == USART2) {
|
||||
s = serialUART2(baudRate, mode, options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue