projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Actually return byte read from SPI
[fw/altos]
/
target
/
ee
/
ee.c
diff --git
a/target/ee/ee.c
b/target/ee/ee.c
index 6cf276a0cc5f9740b0ae95926bad45a7e6b1475c..08d551370e8daa12223837e843f4c61ccb8f0e58 100644
(file)
--- a/
target/ee/ee.c
+++ b/
target/ee/ee.c
@@
-273,6
+273,8
@@
usart_in_out(uint8_t byte)
U0DBUF = byte;
while ((U0CSR & UxCSR_TX_BYTE) == 0)
;
+ U0CSR &= ~UxCSR_TX_BYTE;
+ return U0DBUF;
}
void