summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_uart.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-08 19:14:09 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-08 19:14:09 +0000
commit1603b1a112981f8054b69612a5ad0721eb865bbd (patch)
tree8a79363cc308dee82eac89baf5ff1ccde835d7ce /nuttx/arch/arm/src/stm32/stm32_uart.h
parentb6abad5fbf5877bf9c26269bff418726f26e4b9d (diff)
downloadpx4-nuttx-1603b1a112981f8054b69612a5ad0721eb865bbd.tar.gz
px4-nuttx-1603b1a112981f8054b69612a5ad0721eb865bbd.tar.bz2
px4-nuttx-1603b1a112981f8054b69612a5ad0721eb865bbd.zip
Add STM32 F3 USART definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5626 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_uart.h')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_uart.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_uart.h b/nuttx/arch/arm/src/stm32/stm32_uart.h
index a26ea2009..2b6adaaa6 100644
--- a/nuttx/arch/arm/src/stm32/stm32_uart.h
+++ b/nuttx/arch/arm/src/stm32/stm32_uart.h
@@ -43,7 +43,18 @@
#include <nuttx/config.h>
#include "chip.h"
-#include "chip/stm32_uart.h"
+
+#if defined(CONFIG_STM32_STM32F10XX)
+# include "chip/stm32f10xxx_uart.h"
+#elif defined(CONFIG_STM32_STM32F20XX)
+# include "chip/stm32f20xxx_uart.h"
+#elif defined(CONFIG_STM32_STM32F30XX)
+# include "chip/stm32f30xxx_uart.h"
+#elif defined(CONFIG_STM32_STM32F40XX)
+# include "chip/stm32f40xxx_uart.h"
+#else
+# error "Unsupported STM32 memory map"
+#endif
/************************************************************************************
* Pre-processor Definitions