summaryrefslogtreecommitdiff
path: root/nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c')
-rw-r--r--nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c b/nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c
index 5498e2235..c94d7fd99 100644
--- a/nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c
+++ b/nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c
@@ -2,7 +2,7 @@
* arch/mips/src/pic32mx/pic32mx-lowconsole.c
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -69,6 +69,30 @@
# define PIC32MX_CONSOLE_BITS CONFIG_UART2_BITS
# define PIC32MX_CONSOLE_PARITY CONFIG_UART2_PARITY
# define PIC32MX_CONSOLE_2STOP CONFIG_UART2_2STOP
+#elif defined(CONFIG_UART3_SERIAL_CONSOLE)
+# define PIC32MX_CONSOLE_BASE PIC32MX_UART3_K1BASE
+# define PIC32MX_CONSOLE_BAUD CONFIG_UART3_BAUD
+# define PIC32MX_CONSOLE_BITS CONFIG_UART3_BITS
+# define PIC32MX_CONSOLE_PARITY CONFIG_UART3_PARITY
+# define PIC32MX_CONSOLE_2STOP CONFIG_UART3_2STOP
+#elif defined(CONFIG_UART4_SERIAL_CONSOLE)
+# define PIC32MX_CONSOLE_BASE PIC32MX_UART4_K1BASE
+# define PIC32MX_CONSOLE_BAUD CONFIG_UART4_BAUD
+# define PIC32MX_CONSOLE_BITS CONFIG_UART4_BITS
+# define PIC32MX_CONSOLE_PARITY CONFIG_UART4_PARITY
+# define PIC32MX_CONSOLE_2STOP CONFIG_UART4_2STOP
+#elif defined(CONFIG_UART5_SERIAL_CONSOLE)
+# define PIC32MX_CONSOLE_BASE PIC32MX_UART5_K1BASE
+# define PIC32MX_CONSOLE_BAUD CONFIG_UART5_BAUD
+# define PIC32MX_CONSOLE_BITS CONFIG_UART5_BITS
+# define PIC32MX_CONSOLE_PARITY CONFIG_UART5_PARITY
+# define PIC32MX_CONSOLE_2STOP CONFIG_UART5_2STOP
+#elif defined(CONFIG_UART6_SERIAL_CONSOLE)
+# define PIC32MX_CONSOLE_BASE PIC32MX_UART6_K1BASE
+# define PIC32MX_CONSOLE_BAUD CONFIG_UART6_BAUD
+# define PIC32MX_CONSOLE_BITS CONFIG_UART6_BITS
+# define PIC32MX_CONSOLE_PARITY CONFIG_UART6_PARITY
+# define PIC32MX_CONSOLE_2STOP CONFIG_UART6_2STOP
#else
# error "No CONFIG_UARTn_SERIAL_CONSOLE Setting"
#endif