aboutsummaryrefslogtreecommitdiff
path: root/libraries/mbed/targets/cmsis
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-06-06 11:58:44 -0400
committerPaul Selkirk <paul@psgd.org>2016-06-06 11:58:44 -0400
commit77fc19698b46cfb33b6cc60bc26413a1c0f93ab5 (patch)
treec89d7121adb40141b1bab7ca56c3a15cc97b4b59 /libraries/mbed/targets/cmsis
parent6dc0d2eda0934a1bb5b2686390cea68e9fa569bd (diff)
Fix UART pin assignments. (It uses the Alternate in any case.)
Diffstat (limited to 'libraries/mbed/targets/cmsis')
-rw-r--r--libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c12
1 files 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;