AVR SPI atomicity fixes
sam (ARM) SPI atomicity fixes