aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-10-20 08:08:59 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-10-20 08:08:59 +0000
commit5517f96e86b9447780a3e27bb455697f9fc65eea (patch)
tree7e3557ef88eddbd1fd613debf7f634e23e34bd05 /LUFA/Drivers
parentbd337aced3b1888373030878bf1a49367bc37ab5 (diff)
downloadlufa-5517f96e86b9447780a3e27bb455697f9fc65eea.tar.gz
lufa-5517f96e86b9447780a3e27bb455697f9fc65eea.tar.bz2
lufa-5517f96e86b9447780a3e27bb455697f9fc65eea.zip
Oops - fix broken SPI driver due to missing bit inversion on a port mask.
Diffstat (limited to 'LUFA/Drivers')
-rw-r--r--LUFA/Drivers/Peripheral/SPI.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Drivers/Peripheral/SPI.h b/LUFA/Drivers/Peripheral/SPI.h
index 3858acabc..df69e8214 100644
--- a/LUFA/Drivers/Peripheral/SPI.h
+++ b/LUFA/Drivers/Peripheral/SPI.h
@@ -121,9 +121,9 @@
*/
static inline void SPI_Init(const uint8_t SPIOptions)
{
- DDRB |= ((1 << 1) | (1 << 2));
- DDRB &= ((1 << 0) | (1 << 3));
- PORTB |= ((1 << 0) | (1 << 3));
+ DDRB |= ((1 << 1) | (1 << 2));
+ DDRB &= ~((1 << 0) | (1 << 3));
+ PORTB |= ((1 << 0) | (1 << 3));
SPCR = ((1 << SPE) | SPIOptions);