maybe the modem syn. needs to be set right.

reenabled the uart1-loopback code --- doesn't seem to be working ---
strange.
This commit is contained in:
Mariano Alvira 2009-04-04 15:27:08 -04:00
parent ef276e336c
commit a940f4db2b
3 changed files with 10 additions and 7 deletions

View file

@ -31,12 +31,12 @@ void main(void) {
uint8_t c;
while(1) {
*(volatile uint32_t *)UART1_DATA = (uint8_t)'U';
// if(*(volatile uint32_t*)UR1CON > 0) {
// *(volatile uint32_t *)UART1_DATA = (uint8_t)'U';
if(*(volatile uint32_t*)UR1CON > 0) {
/* Receive buffer isn't empty */
/* read a byte and write it to the transmit buffer */
// c = *(volatile uint32_t *)UART1_DATA;
// *(volatile uint32_t *)UART1_DATA = c;
// }
c = *(volatile uint32_t *)UART1_DATA;
*(volatile uint32_t *)UART1_DATA = c;
}
};
}