1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

Reduce serial port memory usage.

The largest MSP command is 160 bytes.
This commit is contained in:
Dominic Clifton 2014-10-29 19:18:51 +00:00
parent 5a4035fa2f
commit 8f80f86bc9

View file

@ -19,12 +19,12 @@
// FIXME since serial ports can be used for any function these buffer sizes probably need normalising.
// Code is optimal when buffer sizes are powers of 2 due to use of % and / operators.
#define UART1_RX_BUFFER_SIZE 256
#define UART1_TX_BUFFER_SIZE 256
#define UART2_RX_BUFFER_SIZE 256
#define UART2_TX_BUFFER_SIZE 256
#define UART3_RX_BUFFER_SIZE 256
#define UART3_TX_BUFFER_SIZE 256
#define UART1_RX_BUFFER_SIZE 192
#define UART1_TX_BUFFER_SIZE 192
#define UART2_RX_BUFFER_SIZE 192
#define UART2_TX_BUFFER_SIZE 192
#define UART3_RX_BUFFER_SIZE 192
#define UART3_TX_BUFFER_SIZE 192
typedef struct {
serialPort_t port;