HT32SX Monarch Scan
Monarch Scan application for HT32SX
usart.c File Reference

: This file provides code for the configuration of the USART instances. More...

#include "usart.h"

Functions

void MX_USART1_UART_Init (void)
 
void HAL_UART_MspInit (UART_HandleTypeDef *uartHandle)
 
void HAL_UART_MspDeInit (UART_HandleTypeDef *uartHandle)
 
int fputc (int ch, FILE *f)
 

Variables

UART_HandleTypeDef huart1
 
DMA_HandleTypeDef hdma_usart1_rx
 
DMA_HandleTypeDef hdma_usart1_tx
 

Detailed Description

: This file provides code for the configuration of the USART instances.

Attention

© Copyright (c) 2019 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Function Documentation

◆ HAL_UART_MspDeInit()

void HAL_UART_MspDeInit ( UART_HandleTypeDef *  uartHandle)

USART1 GPIO Configuration
PA10 ---—> USART1_RX PA9 ---—> USART1_TX

◆ HAL_UART_MspInit()

void HAL_UART_MspInit ( UART_HandleTypeDef *  uartHandle)

USART1 GPIO Configuration
PA10 ---—> USART1_RX PA9 ---—> USART1_TX