summaryrefslogtreecommitdiff
path: root/nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-10-10 18:42:36 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-10-10 18:42:36 +0000
commit825cd6c478c17dc00135182595c796fcd023854e (patch)
treeb84f2666b201df856d825d7e2444c0df24c463be /nuttx/arch/mips/src/pic32mx/pic32mx-lowconsole.c
parentff641f36093e5a01fed6f896ba0b6a1f7969144f (diff)
downloadpx4-nuttx-825cd6c478c17dc00135182595c796fcd023854e.tar.gz
px4-nuttx-825cd6c478c17dc00135182595c796fcd023854e.tar.bz2
px4-nuttx-825cd6c478c17dc00135182595c796fcd023854e.zip
Adding support of PIC32MX5xx/6xx/7xx families
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4035 42af7a65-404d-4744-a932-0658087f49c3
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