projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add branch for the conversion of demos to use standard C header files for configurati...
[pub/lufa.git]
/
LUFA
/
Drivers
/
Peripheral
/
AVR8
/
SerialSPI_AVR8.h
diff --git
a/LUFA/Drivers/Peripheral/AVR8/SerialSPI_AVR8.h
b/LUFA/Drivers/Peripheral/AVR8/SerialSPI_AVR8.h
index
0126630
..
562aaec
100644
(file)
--- a/
LUFA/Drivers/Peripheral/AVR8/SerialSPI_AVR8.h
+++ b/
LUFA/Drivers/Peripheral/AVR8/SerialSPI_AVR8.h
@@
-176,9
+176,7
@@
*/
static inline void SerialSPI_SendByte(const uint8_t DataByte)
{
*/
static inline void SerialSPI_SendByte(const uint8_t DataByte)
{
- UDR1 = DataByte;
- while (!(UCSR1A & (1 << TXC1)));
- UCSR1A = (1 << TXC1);
+ SerialSPI_TransferByte(DataByte);
}
/** Sends a dummy byte through the USART SPI interface, blocking until the transfer is complete. The response
}
/** Sends a dummy byte through the USART SPI interface, blocking until the transfer is complete. The response
@@
-188,10
+186,7
@@
*/
static inline uint8_t SerialSPI_ReceiveByte(void)
{
*/
static inline uint8_t SerialSPI_ReceiveByte(void)
{
- UDR1 = 0;
- while (!(UCSR1A & (1 << TXC1)));
- UCSR1A = (1 << TXC1);
- return UDR1;
+ return SerialSPI_TransferByte(0);
}
/* Disable C linkage for C++ Compilers: */
}
/* Disable C linkage for C++ Compilers: */