diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-10-06 11:51:53 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-10-06 11:51:53 +0000 |
commit | accadba2dda2614d6a6669cb7eba9d8357274bfe (patch) | |
tree | 5c3b9cb6e38b0b12707cafcfe7e1856bfc97a3d7 /LUFA/Drivers/Peripheral/SPI.h | |
parent | 3ae9e6042fc1ebc876e32142dde606f7890518b2 (diff) | |
download | lufa-accadba2dda2614d6a6669cb7eba9d8357274bfe.tar.gz lufa-accadba2dda2614d6a6669cb7eba9d8357274bfe.tar.bz2 lufa-accadba2dda2614d6a6669cb7eba9d8357274bfe.zip |
Fixed SPI driver not explicitly setting /SS and MISO pins as inputs when SPI_Init() is called.
Diffstat (limited to 'LUFA/Drivers/Peripheral/SPI.h')
-rw-r--r-- | LUFA/Drivers/Peripheral/SPI.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/LUFA/Drivers/Peripheral/SPI.h b/LUFA/Drivers/Peripheral/SPI.h index c6db9f962..8c38dcc27 100644 --- a/LUFA/Drivers/Peripheral/SPI.h +++ b/LUFA/Drivers/Peripheral/SPI.h @@ -122,6 +122,7 @@ static inline void SPI_Init(const uint8_t SPIOptions) { DDRB |= ((1 << 1) | (1 << 2)); + DDRB &= ((1 << 0) | (1 << 3)); PORTB |= ((1 << 0) | (1 << 3)); SPCR = ((1 << SPE) | SPIOptions); |