diff --git a/tests/uart1-loopback.c b/tests/uart1-loopback.c index 260f19fba..f98fa6dc2 100644 --- a/tests/uart1-loopback.c +++ b/tests/uart1-loopback.c @@ -21,8 +21,10 @@ void main(void) { *(volatile uint32_t *)GPIO_FUNC_SEL0 = (0x01 << (14*2)); /* set GPIO14 to UART (UART1 TX)*/ // *(volatile uint32_t *)GPIO_FUNC_SEL0 = ( (0x01 << (14*2)) || (0x01 << (15*2)) ); /* set GPIO15-14 to UART (UART1 TX and RX)*/ + /* INC = 76; MOD = 1000 */ *(volatile uint32_t *)UART1_BR = 0x004C03E8; /* Baud rate: (INC<<16 || MOD) */ /* is 115200 @ 24 MHz --- unexplained */ + *(volatile uint32_t *)UART1_CON = 0x00000003; /* enable receive and transmit */