projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clear UxCSR_TX_BYTE after transmitting a byte
[fw/altos]
/
target
/
ee
/
ee.c
diff --git
a/target/ee/ee.c
b/target/ee/ee.c
index 68b6e4cc2f65a107ca8efe822775f11ce310b4a0..ed13d0ad455e4655b525c6d4686ed7805e9436dd 100644
(file)
--- a/
target/ee/ee.c
+++ b/
target/ee/ee.c
@@
-273,6
+273,7
@@
usart_in_out(uint8_t byte)
U0DBUF = byte;
while ((U0CSR & UxCSR_TX_BYTE) == 0)
;
U0DBUF = byte;
while ((U0CSR & UxCSR_TX_BYTE) == 0)
;
+ U0CSR &= ~UxCSR_TX_BYTE;
}
void
}
void
@@
-375,6
+376,7
@@
main ()
uint8_t buf[LENGTH];
int i;
uint8_t buf[LENGTH];
int i;
+ P1DIR |= 2;
CLKCON = 0;
spi_init();
CLKCON = 0;
spi_init();
@@
-389,10
+391,10
@@
main ()
*/
status &= ~(1 << 7);
wrsr(status);
*/
status &= ~(1 << 7);
wrsr(status);
-
//
write(0x0, STRING, LENGTH);
+
write(0x0, STRING, LENGTH);
for (;;) {
read(0x0, buf, LENGTH);
for (i = 0; i < LENGTH; i++)
for (;;) {
read(0x0, buf, LENGTH);
for (i = 0; i < LENGTH; i++)
- debug_byte(
STRING
[i]);
+ debug_byte(
buf
[i]);
}
}
}
}