projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops - fix broken SPI driver due to missing bit inversion on a port mask.
[pub/lufa.git]
/
LUFA
/
Drivers
/
Peripheral
/
SPI.h
diff --git
a/LUFA/Drivers/Peripheral/SPI.h
b/LUFA/Drivers/Peripheral/SPI.h
index
3858aca
..
df69e82
100644
(file)
--- 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)
{
*/
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);
SPCR = ((1 << SPE) | SPIOptions);