X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/1d4ff3695d8599687b456cdce156c5127251ae1b..3a03da970558de9211fc1a43b12bf69e38854d09:/LUFA/Drivers/Peripheral/SPI.h diff --git a/LUFA/Drivers/Peripheral/SPI.h b/LUFA/Drivers/Peripheral/SPI.h index 5bd7df448..8c38dcc27 100644 --- a/LUFA/Drivers/Peripheral/SPI.h +++ b/LUFA/Drivers/Peripheral/SPI.h @@ -113,7 +113,7 @@ #define SPI_MODE_MASTER (1 << MSTR) /* Inline Functions: */ - /** Initializes the SPI subsystem, ready for transfers. Must be called before calling any other + /** Initialises the SPI subsystem, ready for transfers. Must be called before calling any other * SPI routines. * * \param[in] SPIOptions SPI Options, a mask consisting of one of each of the SPI_SPEED_*, @@ -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);