From b01d3e396e132a41fc72ca6978e0735946fea94e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 22 Aug 2014 09:02:58 -0600 Subject: [PATCH] STM32 F401: Only 3 USARTS, but need to set STM32_NUSARTS to six because they are not numbered sequentially --- arch/arm/include/stm32/chip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/stm32/chip.h b/arch/arm/include/stm32/chip.h index 76a9681857e..cce35f77677 100644 --- a/arch/arm/include/stm32/chip.h +++ b/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 */