summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkbrtny <kevinbretney@gmail.com>2014-10-08 12:38:41 -0700
committerAndrew Tridgell <tridge@samba.org>2014-11-26 19:21:35 +1100
commit06c9dd621d3d8f82e68c9177e2afb7c6078d1da9 (patch)
treee6707320ae204e7cf75835892cc2a531a818980b
parent41a6b1cf857e419fe7107808f149ba169559db9e (diff)
downloadnuttx-06c9dd621d3d8f82e68c9177e2afb7c6078d1da9.tar.gz
nuttx-06c9dd621d3d8f82e68c9177e2afb7c6078d1da9.tar.bz2
nuttx-06c9dd621d3d8f82e68c9177e2afb7c6078d1da9.zip
updating pinmap for mavstation
-rw-r--r--nuttx/arch/arm/src/stm32/chip/stm32f103c_pinmap.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32f103c_pinmap.h b/nuttx/arch/arm/src/stm32/chip/stm32f103c_pinmap.h
index d2e6f82c7..0f91234b0 100644
--- a/nuttx/arch/arm/src/stm32/chip/stm32f103c_pinmap.h
+++ b/nuttx/arch/arm/src/stm32/chip/stm32f103c_pinmap.h
@@ -230,6 +230,28 @@
# define GPIO_USART1_RX (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|GPIO_PORTA|GPIO_PIN10)
#endif
+#if defined(CONFIG_STM32_USART2_REMAP)
+# error CONFIG_STM32_USART2_REMAP not supported on this architecture
+#else
+# define GPIO_USART2_CTS (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|GPIO_PORTA|GPIO_PIN0)
+# define GPIO_USART2_RTS (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN1)
+# define GPIO_USART2_TX (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN2)
+# define GPIO_USART2_RX (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|GPIO_PORTA|GPIO_PIN3)
+# define GPIO_USART2_CK (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN4)
+#endif
+
+#if defined(CONFIG_STM32_USART3_FULL_REMAP)
+# error CONFIG_STM32_USART3_FULL_REMAP not supported on this architecture
+#elif defined(CONFIG_STM32_USART3_PARTIAL_REMAP)
+# error CONFIG_STM32_USART3_PARTIAL_REMAP not supported on this architecture
+#else
+# define GPIO_USART3_TX (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTB|GPIO_PIN10)
+# define GPIO_USART3_RX (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|GPIO_PORTB|GPIO_PIN11)
+# define GPIO_USART3_CK (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTB|GPIO_PIN12)
+# define GPIO_USART3_CTS (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|GPIO_PORTB|GPIO_PIN13)
+# define GPIO_USART3_RTS (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTB|GPIO_PIN14)
+#endif
+
#define GPIO_WKUP (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN0)
/* These GPIOs are shared with JTAG / SWD. */