From a940f4db2baae7f40862395f378bc0187d5fbcc5 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Sat, 4 Apr 2009 15:27:08 -0400 Subject: [PATCH] maybe the modem syn. needs to be set right. reenabled the uart1-loopback code --- doesn't seem to be working --- strange. --- tests/rftest-rx.c | 1 + tests/rftest-tx.c | 6 ++++-- tests/uart1-loopback.c | 10 +++++----- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/tests/rftest-rx.c b/tests/rftest-rx.c index 9c3c4bc30..26d11408c 100644 --- a/tests/rftest-rx.c +++ b/tests/rftest-rx.c @@ -50,6 +50,7 @@ void main(void) { reg(UART1_CON) = 0x00000003; /* enable receive and transmit */ reg(GPIO_FUNC_SEL0) = ( (0x01 << (14*2)) | (0x01 << (15*2)) ); /* set GPIO15-14 to UART (UART1 TX and RX)*/ + reg(80009000) = 0x00050100; reg(MACA_RESET) = 0x3; /* reset, turn on the clock */ for(i=0; i 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; + } }; }