Src/stm32f1xx_hal_msp.c
/**
  * @brief UART MSP De-Initialization
  *        This function frees the hardware resources used in this example:
  *          - Disable the Peripheral's clock
  *          - Revert GPIO and NVIC configuration to their default state
  * @param huart: UART handle pointer
  * @retval None
  */
@brief UART MSP De-Initialization
This function frees the hardware resources used in this example:
- Disable the Peripheral's clock
- Revert GPIO and NVIC configuration to their default state
@param huart: UART handle pointer
@retval None
@brief UART MSP De - Initialization This function frees the hardware resources used in this example : - Disable the Peripheral ' s clock - Revert GPIO and NVIC configuration to their default state @param huart : UART handle pointer @retval None
void HAL_UART_MspDeInit(UART_HandleTypeDef *huart)
{
  USARTx_FORCE_RESET();
  USARTx_RELEASE_RESET();
  HAL_GPIO_DeInit(USARTx_TX_GPIO_PORT, USARTx_TX_PIN);
  HAL_GPIO_DeInit(USARTx_RX_GPIO_PORT, USARTx_RX_PIN);
  HAL_DMA_DeInit(&hdma_rx);
  HAL_NVIC_DisableIRQ(USARTx_IRQn);
}
void HAL_UART_MspDeInit ( UART_HandleTypeDef * huart ) { USARTx_FORCE_RESET ( ) ; USARTx_RELEASE_RESET ( ) ; HAL_GPIO_DeInit ( USARTx_TX_GPIO_PORT , USARTx_TX_PIN ) ; HAL_GPIO_DeInit ( USARTx_RX_GPIO_PORT , USARTx_RX_PIN ) ; HAL_DMA_DeInit ( & hdma_rx ) ; HAL_NVIC_DisableIRQ ( USARTx_IRQn ) ; }
@brief UART MSP De-Initialization
        This function frees the hardware resources used in this example:
          - Disable the Peripheral's clock
          - Revert GPIO and NVIC configuration to their default state
 @param huart: UART handle pointer
 @retval None
@brief UART MSP De - Initialization This function frees the hardware resources used in this example : - Disable the Peripheral ' s clock - Revert GPIO and NVIC configuration to their default state @param huart : UART handle pointer @retval None