From 952b9b5b7ef9440e032381111653cc5e1c93d763 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Mon, 30 Mar 2009 14:09:29 -0400 Subject: [PATCH] comment noting what I set mod and inc to. --- tests/uart1-loopback.c | 2 ++ 1 file changed, 2 insertions(+) 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 */