mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Reduce serial port memory usage.
The largest MSP command is 160 bytes.
This commit is contained in:
parent
5a4035fa2f
commit
8f80f86bc9
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue