diff options
author | Cristian Maglie <c.maglie@bug.st> | 2014-10-20 19:46:08 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2014-11-25 15:49:17 +0100 |
commit | d4edece7e6698e7687dd8dec1831f9756c8b0017 (patch) | |
tree | b4866effbeb5895f00ab6e620c58d9c5d27263c0 /cores/arduino/USBDesc.h | |
parent | 7ee84bdb1eb39dde646ed1859d9fe7d37d4584bf (diff) |
[avr] Improved SPI speed on 16bit transfer.
From https://github.com/arduino/Arduino/pull/2376#issuecomment-59671152
Quoting Andrew Kroll:
[..this commit..] introduces a small delay that can prevent the wait
loop form iterating when running at the maximum speed. This gives
you a little more speed, even if it seems counter-intuitive. At
lower speeds, it is unnoticed. Watch the output on an oscilloscope
when running full SPI speed, and you should see closer back-to-back
writes.
Quoting Paul Stoffregen:
I did quite a bit of experimenting with the NOP addition. The one
that's in my copy gives about a 10% speedup on AVR.
Diffstat (limited to 'cores/arduino/USBDesc.h')
0 files changed, 0 insertions, 0 deletions