projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops - fix incorrect value of AOA_CSCP_AOADataSubclass in the Android Open Accessory...
[pub/USBasp.git]
/
LUFA
/
Drivers
/
Peripheral
/
AVR8
/
SPI_AVR8.h
diff --git
a/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h
b/LUFA/Drivers/Peripheral/AVR8/SPI_AVR8.h
index
2caacaa
..
48b8740
100644
(file)
--- 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);
/* 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. */
}
/** 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
*/
*
* \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);
static inline uint8_t SPI_GetCurrentMode(void)
{
return (SPCR & SPI_MODE_MASTER);