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; + } }; }