From 407031dc54f15fb91c851f6c779025b0bd09e68c Mon Sep 17 00:00:00 2001 From: Francois Berder Date: Wed, 19 Apr 2017 16:22:50 +0100 Subject: [PATCH] boards: pic32-wifire: Fix UART RX pinmux register U4RXREG is the RX buffer for UART4. U4RXR is the register for controlling the input pin for UART4. Signed-off-by: Francois Berder --- boards/pic32-wifire/wifire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/pic32-wifire/wifire.c b/boards/pic32-wifire/wifire.c index a563ad2269..62d426ef6a 100644 --- a/boards/pic32-wifire/wifire.c +++ b/boards/pic32-wifire/wifire.c @@ -23,7 +23,7 @@ void board_init(void) * Setup pin mux for UART4 this is the one connected * to the ftdi chip (usb<->uart) */ - U4RXREG = 0xb; /* connect pin RPF2 to UART 4 RX */ + U4RXR = 0xb; /* connect pin RPF2 to UART 4 RX */ RPF8R = 0x2; /* connect pin RPF8 to UART 4 TX */ /* intialise UART used for debug (printf) */