aboutsummaryrefslogtreecommitdiff
path: root/LUFA
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-10-20 08:08:59 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-10-20 08:08:59 +0000
commite3dfd41cd4e49880eec7955ad7e8cb8a7a407f35 (patch)
tree7e3557ef88eddbd1fd613debf7f634e23e34bd05 /LUFA
parent4b5328f3bae564266411c6de4daaf09f7173aaab (diff)
Oops - fix broken SPI driver due to missing bit inversion on a port mask.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1535 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA')
-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 3858acab..df69e821 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);