X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/f10126a95e528a04b4ec6be1d0fc30be4fbb7e98..cdd4e11fa8559fc7fbea54f29310f6a2307d075c:/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h?ds=inline diff --git a/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h b/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h index 2caacaa00..48b8740fe 100644 --- a/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h +++ b/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h @@ -183,7 +183,7 @@ /* Switch /SS to input mode after configuration to allow for forced mode changes */ DDRB &= ~(1 << 0); - SPCR = ((1 << SPE) | SPIOptions); + SPCR = ((1 << SPE) | SPIOptions); } /** Turns off the SPI driver, disabling and returning used hardware to their default configuration. */ @@ -200,6 +200,7 @@ * * \return \ref SPI_MODE_MASTER if the interface is currently in SPI Master mode, \ref SPI_MODE_SLAVE otherwise */ + static inline uint8_t SPI_GetCurrentMode(void) ATTR_ALWAYS_INLINE; static inline uint8_t SPI_GetCurrentMode(void) { return (SPCR & SPI_MODE_MASTER);