aboutsummaryrefslogtreecommitdiff
path: root/libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino
diff options
context:
space:
mode:
authorJohn Holman <john.g.holman@gmail.com>2017-10-24 22:18:38 +0100
committerMartino Facchin <m.facchin@arduino.cc>2017-11-13 17:46:47 +0100
commitd50e59781ecfd80a366cd0bb0b30374b1536247a (patch)
treebf8b8b8a9700b5c5913937a1ed83712f1339568e /libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino
parentf1c4cc631620f6486706a06580011a2e0dbd77e5 (diff)
Create macro to guard critical sections for large transmit buffers
New macro TX_BUFFER_ATOMIC makes the following code block atomic only if the transmit buffer is larger than 256 bytes. SREG is restored on completion. The macro is then used to simplify code for availableForWrite()
Diffstat (limited to 'libraries/SPI/examples/BarometricPressureSensor/BarometricPressureSensor.ino')
0 files changed, 0 insertions, 0 deletions