diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-10-06 11:51:53 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-10-06 11:51:53 +0000 |
| commit | 9f12e2c6e59c949a733673579a048dd2ddedda7d (patch) | |
| tree | 5c3b9cb6e38b0b12707cafcfe7e1856bfc97a3d7 /LUFA | |
| parent | 30f8aa1c894f75cc30d7da123a4186557c0ba223 (diff) | |
Fixed SPI driver not explicitly setting /SS and MISO pins as inputs when SPI_Init() is called.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1514 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA')
| -rw-r--r-- | LUFA/Drivers/Peripheral/SPI.h | 1 | ||||
| -rw-r--r-- | LUFA/ManPages/ChangeLog.txt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/LUFA/Drivers/Peripheral/SPI.h b/LUFA/Drivers/Peripheral/SPI.h index c6db9f96..8c38dcc2 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); diff --git a/LUFA/ManPages/ChangeLog.txt b/LUFA/ManPages/ChangeLog.txt index 4aec1539..ee02943b 100644 --- a/LUFA/ManPages/ChangeLog.txt +++ b/LUFA/ManPages/ChangeLog.txt @@ -68,6 +68,7 @@ * - Fixed incorrect LEDs_ChangeLEDs() function in the Benito board LED driver * - Fixed incorrect USB_DeviceState value when unconfiguring the device without an address set * - Fixed broken FLASH/EEPROM programming in the AVRISP-MKII clone project when writing in non-paged mode and the polling byte cannot be used + * - Fixed SPI driver not explicitly setting /SS and MISO pins as inputs when SPI_Init() is called * * \section Sec_ChangeLog100807 Version 100807 * <b>New:</b> |
