|
@@ -762,14 +762,14 @@ void HAL_UART_MspInit(UART_HandleTypeDef* huart)
|
|
|
*/
|
|
|
GPIO_InitStruct.Pin = STLINK_RX_Pin;
|
|
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
|
|
- GPIO_InitStruct.Pull = GPIO_NOPULL;
|
|
|
+ GPIO_InitStruct.Pull = GPIO_PULLUP;
|
|
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
|
|
GPIO_InitStruct.Alternate = GPIO_AF6_UART4;
|
|
|
HAL_GPIO_Init(STLINK_RX_GPIO_Port, &GPIO_InitStruct);
|
|
|
|
|
|
GPIO_InitStruct.Pin = STLINK_TX_Pin;
|
|
|
GPIO_InitStruct.Mode = GPIO_MODE_AF;
|
|
|
- GPIO_InitStruct.Pull = GPIO_NOPULL;
|
|
|
+ GPIO_InitStruct.Pull = GPIO_PULLUP;
|
|
|
GPIO_InitStruct.Alternate = GPIO_AF8_UART4;
|
|
|
HAL_GPIO_Init(STLINK_TX_GPIO_Port, &GPIO_InitStruct);
|
|
|
|
|
@@ -806,14 +806,14 @@ void HAL_UART_MspInit(UART_HandleTypeDef* huart)
|
|
|
*/
|
|
|
GPIO_InitStruct.Pin = GPIO_PIN_10;
|
|
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
|
|
- GPIO_InitStruct.Pull = GPIO_NOPULL;
|
|
|
+ GPIO_InitStruct.Pull = GPIO_PULLUP;
|
|
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
|
|
GPIO_InitStruct.Alternate = GPIO_AF7_USART3;
|
|
|
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
|
|
|
|
|
|
GPIO_InitStruct.Pin = GPIO_PIN_12;
|
|
|
GPIO_InitStruct.Mode = GPIO_MODE_AF;
|
|
|
- GPIO_InitStruct.Pull = GPIO_NOPULL;
|
|
|
+ GPIO_InitStruct.Pull = GPIO_PULLUP;
|
|
|
GPIO_InitStruct.Alternate = GPIO_AF8_USART3;
|
|
|
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
|
|
|
|