X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/de5b16909a7d9cdedc5194cf74de9ec2e59b4d60..ccc82ce74598a00bf484cdec3e186af609efcc50:/LUFA/Drivers/Peripheral/SPI.h diff --git a/LUFA/Drivers/Peripheral/SPI.h b/LUFA/Drivers/Peripheral/SPI.h index 06a8f1880..8c38dcc27 100644 --- a/LUFA/Drivers/Peripheral/SPI.h +++ b/LUFA/Drivers/Peripheral/SPI.h @@ -106,9 +106,6 @@ /** SPI data order mask for SPI_Init(). Indicates that data should be shifted out MSB first. */ #define SPI_ORDER_LSB_FIRST (1 << DORD) - /** SPI data sample mode mask for SPI_Init(). Indicates that the data should be sampled on the trailing edge. */ - #define SPI_SAMPLE_TRAILING (1 << CPHA) - /** SPI mode mask for SPI_Init(). Indicates that the SPI interface should be initialized into slave mode. */ #define SPI_MODE_SLAVE (0 << MSTR) @@ -116,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_*, @@ -125,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);