mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Merge pull request #10410 from ligenxxxx/master
This commit is contained in:
commit
b189f8f1f7
1 changed files with 16 additions and 0 deletions
|
@ -47,8 +47,12 @@
|
|||
#define UART_RX_BUFFER_SIZE 128
|
||||
#endif
|
||||
#ifndef UART_TX_BUFFER_SIZE
|
||||
#ifdef USE_MSP_DISPLAYPORT
|
||||
#define UART_TX_BUFFER_SIZE 1280
|
||||
#else
|
||||
#define UART_TX_BUFFER_SIZE 256
|
||||
#endif
|
||||
#endif
|
||||
#elif defined(STM32F7)
|
||||
#define UARTDEV_COUNT_MAX 8
|
||||
#define UARTHARDWARE_MAX_PINS 4
|
||||
|
@ -56,8 +60,12 @@
|
|||
#define UART_RX_BUFFER_SIZE 128
|
||||
#endif
|
||||
#ifndef UART_TX_BUFFER_SIZE
|
||||
#ifdef USE_MSP_DISPLAYPORT
|
||||
#define UART_TX_BUFFER_SIZE 1280
|
||||
#else
|
||||
#define UART_TX_BUFFER_SIZE 256
|
||||
#endif
|
||||
#endif
|
||||
#elif defined(STM32H7)
|
||||
#define UARTDEV_COUNT_MAX 8
|
||||
#define UARTHARDWARE_MAX_PINS 5
|
||||
|
@ -65,8 +73,12 @@
|
|||
#define UART_RX_BUFFER_SIZE 128
|
||||
#endif
|
||||
#ifndef UART_TX_BUFFER_SIZE
|
||||
#ifdef USE_MSP_DISPLAYPORT
|
||||
#define UART_TX_BUFFER_SIZE 1280
|
||||
#else
|
||||
#define UART_TX_BUFFER_SIZE 256
|
||||
#endif
|
||||
#endif
|
||||
#elif defined(STM32G4)
|
||||
#define UARTDEV_COUNT_MAX 9 // UART1~5 + UART9 (Implemented with LPUART1)
|
||||
#define UARTHARDWARE_MAX_PINS 3
|
||||
|
@ -74,8 +86,12 @@
|
|||
#define UART_RX_BUFFER_SIZE 128
|
||||
#endif
|
||||
#ifndef UART_TX_BUFFER_SIZE
|
||||
#ifdef USE_MSP_DISPLAYPORT
|
||||
#define UART_TX_BUFFER_SIZE 1280
|
||||
#else
|
||||
#define UART_TX_BUFFER_SIZE 256
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#error unknown MCU family
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue