From 77fc19698b46cfb33b6cc60bc26413a1c0f93ab5 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Mon, 6 Jun 2016 11:58:44 -0400 Subject: 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(-) (limited to 'libraries/mbed/targets/cmsis') 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; -- cgit v1.2.3