Fixed SPI driver not explicitly setting /SS and MISO pins as inputs when SPI_Init...
[pub/lufa.git] / LUFA / Drivers / Peripheral / SPI.h
index c6db9f9..8c38dcc 100644 (file)
                        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);