mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-30 11:24:12 +01:00
0bd6a2d20f
This removes the need for doing an extra pointer dereference on every access to the buffers, shrinking the code by around 100 bytes. The members for these buffers must be public for now, since the interrupt handlers also need to access them. These can later be made private again. Furthermore, the struct ring_buffer was removed. This allows the all head and tail pointers to be put into the HardwareSerial struct before the actual buffers, so the pointers all end up in the first 32 bytes of the struct that can be accessed using a single instruction (ldd). References: #947 |
||
---|---|---|
.. | ||
avr | ||
sam |