summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-22 09:02:58 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-22 09:02:58 -0600
commit3ee26908593dc30b07686f8cb3f8e23fa8ad12d5 (patch)
tree9fbd7a59a467c0b21fe3715d64345621cc9011df
parent0f0250976ba4c297a9a20c67e83682455a0ad65a (diff)
downloadnuttx-3ee26908593dc30b07686f8cb3f8e23fa8ad12d5.tar.gz
nuttx-3ee26908593dc30b07686f8cb3f8e23fa8ad12d5.tar.bz2
nuttx-3ee26908593dc30b07686f8cb3f8e23fa8ad12d5.zip
STM32 F401: Only 3 USARTS, but need to set STM32_NUSARTS to six because they are not numbered sequentially
-rw-r--r--nuttx/arch/arm/include/stm32/chip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/arm/include/stm32/chip.h b/nuttx/arch/arm/include/stm32/chip.h
index 76a968185..cce35f776 100644
--- a/nuttx/arch/arm/include/stm32/chip.h
+++ b/nuttx/arch/arm/include/stm32/chip.h
@@ -1215,7 +1215,7 @@
# define STM32_NDMA 2 /* DMA1-2 with 8 streams each*/
# define STM32_NSPI 4 /* SPI1-4 */
# define STM32_NI2S 2 /* I2S1-2 (multiplexed with SPI2-3) */
-# define STM32_NUSART 3 /* USART1, 2 and 6 */
+# define STM32_NUSART 6 /* Actually only 3: USART1, 2 and 6 */
# define STM32_NI2C 3 /* I2C1-3 */
# define STM32_NCAN 0 /* No CAN */
# define STM32_NSDIO 1 /* One SDIO interface */