Skip to content

Commit

Permalink
Fixed SPI driver not explicitly setting /SS and MISO pins as inputs w…
Browse files Browse the repository at this point in the history
…hen SPI_Init() is called.

git-svn-id: http://lufa-lib.googlecode.com/svn@1514 d5102386-fcda-11dd-9fdb-3debd5008f28
  • Loading branch information
Dean authored and Dean committed Oct 6, 2010
1 parent 5f16f33 commit dd821a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions trunk/LUFA/Drivers/Peripheral/SPI.h
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions trunk/LUFA/ManPages/ChangeLog.txt
Expand Up @@ -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>
Expand Down

0 comments on commit dd821a8

Please sign in to comment.