mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Fix HW Serial buffer size determination
This commit is contained in:
parent
8767cd51b4
commit
441fd561cf
@ -40,14 +40,14 @@
|
|||||||
// often work, but occasionally a race condition can occur that makes
|
// often work, but occasionally a race condition can occur that makes
|
||||||
// Serial behave erratically. See https://github.com/arduino/Arduino/issues/2405
|
// Serial behave erratically. See https://github.com/arduino/Arduino/issues/2405
|
||||||
#if !defined(SERIAL_TX_BUFFER_SIZE)
|
#if !defined(SERIAL_TX_BUFFER_SIZE)
|
||||||
#if (RAMEND < 1000)
|
#if ((RAMEND - RAMSTART) < 1023)
|
||||||
#define SERIAL_TX_BUFFER_SIZE 16
|
#define SERIAL_TX_BUFFER_SIZE 16
|
||||||
#else
|
#else
|
||||||
#define SERIAL_TX_BUFFER_SIZE 64
|
#define SERIAL_TX_BUFFER_SIZE 64
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if !defined(SERIAL_RX_BUFFER_SIZE)
|
#if !defined(SERIAL_RX_BUFFER_SIZE)
|
||||||
#if (RAMEND < 1000)
|
#if ((RAMEND - RAMSTART) < 1023)
|
||||||
#define SERIAL_RX_BUFFER_SIZE 16
|
#define SERIAL_RX_BUFFER_SIZE 16
|
||||||
#else
|
#else
|
||||||
#define SERIAL_RX_BUFFER_SIZE 64
|
#define SERIAL_RX_BUFFER_SIZE 64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user