mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Uniformly reduce UART buffer sizes to 128 bytes (#5432)
This commit is contained in:
parent
abe5b61ff8
commit
6056ee1740
1 changed files with 8 additions and 8 deletions
|
@ -23,37 +23,37 @@
|
||||||
#define UARTDEV_COUNT_MAX 3
|
#define UARTDEV_COUNT_MAX 3
|
||||||
#define UARTHARDWARE_MAX_PINS 3
|
#define UARTHARDWARE_MAX_PINS 3
|
||||||
#ifndef UART_RX_BUFFER_SIZE
|
#ifndef UART_RX_BUFFER_SIZE
|
||||||
#define UART_RX_BUFFER_SIZE 256
|
#define UART_RX_BUFFER_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
#ifndef UART_TX_BUFFER_SIZE
|
#ifndef UART_TX_BUFFER_SIZE
|
||||||
#define UART_TX_BUFFER_SIZE 256
|
#define UART_TX_BUFFER_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
#elif defined(STM32F3)
|
#elif defined(STM32F3)
|
||||||
#define UARTDEV_COUNT_MAX 5
|
#define UARTDEV_COUNT_MAX 5
|
||||||
#define UARTHARDWARE_MAX_PINS 4
|
#define UARTHARDWARE_MAX_PINS 4
|
||||||
#ifndef UART_RX_BUFFER_SIZE
|
#ifndef UART_RX_BUFFER_SIZE
|
||||||
#define UART_RX_BUFFER_SIZE 256
|
#define UART_RX_BUFFER_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
#ifndef UART_TX_BUFFER_SIZE
|
#ifndef UART_TX_BUFFER_SIZE
|
||||||
#define UART_TX_BUFFER_SIZE 256
|
#define UART_TX_BUFFER_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
#elif defined(STM32F4)
|
#elif defined(STM32F4)
|
||||||
#define UARTDEV_COUNT_MAX 6
|
#define UARTDEV_COUNT_MAX 6
|
||||||
#define UARTHARDWARE_MAX_PINS 4
|
#define UARTHARDWARE_MAX_PINS 4
|
||||||
#ifndef UART_RX_BUFFER_SIZE
|
#ifndef UART_RX_BUFFER_SIZE
|
||||||
#define UART_RX_BUFFER_SIZE 512
|
#define UART_RX_BUFFER_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
#ifndef UART_TX_BUFFER_SIZE
|
#ifndef UART_TX_BUFFER_SIZE
|
||||||
#define UART_TX_BUFFER_SIZE 512
|
#define UART_TX_BUFFER_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
#elif defined(STM32F7)
|
#elif defined(STM32F7)
|
||||||
#define UARTDEV_COUNT_MAX 8
|
#define UARTDEV_COUNT_MAX 8
|
||||||
#define UARTHARDWARE_MAX_PINS 3
|
#define UARTHARDWARE_MAX_PINS 3
|
||||||
#ifndef UART_RX_BUFFER_SIZE
|
#ifndef UART_RX_BUFFER_SIZE
|
||||||
#define UART_RX_BUFFER_SIZE 512
|
#define UART_RX_BUFFER_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
#ifndef UART_TX_BUFFER_SIZE
|
#ifndef UART_TX_BUFFER_SIZE
|
||||||
#define UART_TX_BUFFER_SIZE 512
|
#define UART_TX_BUFFER_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#error unknown MCU family
|
#error unknown MCU family
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue