-
-
Notifications
You must be signed in to change notification settings - Fork 7k
9-bit frame support for HardwareSerial 1.5.X #2291
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
Conversation
@ArduinoBot build this please |
I had a quick look over this pullrequest, but it doesn't look ready to merge yet. In particular:
|
I will take a look at the points you mentioned as soon as i can. Thanks for the feedback! Am 10.09.2014 12:09, schrieb Matthijs Kooijman:
|
@matthijskooijman Would you be so kind and take another look at my changes. I compared the files i've modified with the latest versions of the ide-1.5.x branch and fixed them accordingly. |
Can one of the admins verify this patch? |
Squash and rebase of arduino/Arduino#2291 Supersedes arduino/Arduino#1221
|
I'll close this as 7 years have gone by, so I guess nobody cares about this anymore 🤷🏽 |
I've added support for sending and receiving 9-bit frames for AVR as well as SAM based boards.
The changes are tested with a test sketch [1] and also with a logic analyzer (Saleae Logic 8).
On AVR based boards i use two bytes in the buffer for storing a 9 bit frame. So i don't have to change the buffer type to uint16_t which means that all other modes then 9 bit don't waste RAM. The only downside for 9 bit users is that the buffer has only half the size.
[1] Test Sketch