-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix SERIAL_BUFFER_SIZE for SAMD & nRF5x (Adafruit) #459
base: main
Are you sure you want to change the base?
Conversation
I would request a nested // The RX and TX hardware FIFOs of the ESP8266 hold 128 bytes that can be
// extended using interrupt handlers. The Arduino constants are not available
// for the ESP8266 platform.
#if !defined(SERIAL_RX_BUFFER_SIZE)
#if defined(UART_TX_FIFO_SIZE)
#define SERIAL_RX_BUFFER_SIZE UART_TX_FIFO_SIZE
#elif defined(SERIAL_BUFFER_SIZE) // For SAMD and nRF5x core
#define SERIAL_RX_BUFFER_SIZE SERIAL_BUFFER_SIZE
#endif
#endif This appears to be a good candidate for abstraction with a |
Push to my branch but github doesn't update PR, close & reopen PR as a trick to force update |
The code looks good to me! @soundanalogous has the hardware to run tests before we merge, so I'll let him work his magic. Thanks for the PR! |
with the removal of This PR may not be needed anymore. I am not sure the above commit an interim commit or not. Feel free to merge or close this issue or tell me if you need to make any changes. |
6e6b5c8 fixes the compile issue but doesn't enable support for using a serial buffer with SMAD boards. I'll look into getting this merged sometime this weekend if I can find some time to test it. |
thanks, feel free to merge whenever you have time. |
This PR fixes current master build with SAMD & Adafruit nRF core. PR #448 introduce the usage of
SERIAL_RX_BUFFER_SIZE
however this symbol is not define on SAMD & nRF core. There is SERIAL_BUFFER_SIZE that should be usedhttps://github.com/arduino/ArduinoCore-samd/blob/master/cores/arduino/RingBuffer.h#L31
current build errror