1
0
Fork 0
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:
Sami Korhonen 2016-12-04 09:48:47 +02:00
parent 5ee5ec1358
commit 7c6d3efa13
9 changed files with 712 additions and 4 deletions

View file

@ -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);