[Cryptech-Commits] [sw/stm32] 08/11: Fix UART pin assignments. (It uses the Alternate in any case.)

git at cryptech.is git at cryptech.is
Mon Jun 6 18:32:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository sw/stm32.

commit 77fc19698b46cfb33b6cc60bc26413a1c0f93ab5
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Mon Jun 6 11:58:44 2016 -0400

    Fix UART pin assignments. (It uses the Alternate in any case.)
---
 .../TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c
index 91a6f46..4f3b68d 100644
--- a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c
+++ b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c
@@ -126,10 +126,10 @@ void HAL_UART_MspInit(UART_HandleTypeDef* huart)
     __GPIOA_CLK_ENABLE();
 
     /**USART1 GPIO Configuration
-       PA2     ------> USART2_TX
-       PA3     ------> USART2_RX
+       PA9     ------> USART1_TX
+       PA10    ------> USART1_RX
     */
-    GPIO_InitStruct.Pin = GPIO_PIN_2 | GPIO_PIN_3;
+    GPIO_InitStruct.Pin = GPIO_PIN_9 | GPIO_PIN_10;
     GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
     GPIO_InitStruct.Pull = GPIO_PULLUP;
     GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
@@ -169,10 +169,10 @@ void HAL_UART_MspInit(UART_HandleTypeDef* huart)
     __GPIOA_CLK_ENABLE();
 
     /**USART2 GPIO Configuration
-       PA9     ------> USART2_TX
-       PA10    ------> USART2_RX
+       PA2     ------> USART2_TX
+       PA3     ------> USART2_RX
     */
-    GPIO_InitStruct.Pin = GPIO_PIN_9 | GPIO_PIN_10;
+    GPIO_InitStruct.Pin = GPIO_PIN_2 | GPIO_PIN_3;
     GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
     GPIO_InitStruct.Pull = GPIO_PULLUP;
     GPIO_InitStruct.Speed = GPIO_SPEED_LOW;



More information about the Commits mailing list