Macros | |
#define | UART_PORTID USART1 |
#define | USARTx_CLK_ENABLE() __HAL_RCC_USART1_CLK_ENABLE(); |
#define | USARTx_RX_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | USARTx_TX_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | RCC_PERIPHCLK_USARTx RCC_PERIPHCLK_USART1 |
#define | RCC_USARTxCLKSOURCE_HSI RCC_USART1CLKSOURCE_HSI |
#define | USARTx_FORCE_RESET() __HAL_RCC_USART1_FORCE_RESET() |
#define | USARTx_RELEASE_RESET() __HAL_RCC_USART1_RELEASE_RESET() |
#define | USARTx_TX_PIN GPIO_PIN_9 |
#define | USARTx_TX_GPIO_PORT GPIOA |
#define | USARTx_TX_AF GPIO_AF7_USART1 |
#define | USARTx_RX_PIN GPIO_PIN_10 |
#define | USARTx_RX_GPIO_PORT GPIOA |
#define | USARTx_RX_AF GPIO_AF7_USART1 |
Functions | |
void | HAL_UART_MspInit (UART_HandleTypeDef *huart) |
UART MSP Initialization - This function configures the hardware resources. More... | |
void | HAL_UART_MspDeInit (UART_HandleTypeDef *huart) |
UART MSP Deinitialization - This function configures the hardware resources. More... | |
void | EwBspConsoleInit (void) |
The function EwBspConsoleInit initializes a console connection via UART/USART interface used to print error and trace messages from an Embedded Wizard GUI application. This implementation uses the following configuration: More... | |
void | EwBspConsoleDone (void) |
The function EwBspConsoleDone terminates a console connection. More... | |
void | EwBspConsolePutCharacter (unsigned char aCharacter) |
The function EwBspConsolePutCharacter sends the given character to the console interface. More... | |
unsigned char | EwBspConsoleGetCharacter (void) |
The function EwBspConsoleGetCharacter returns the current character from the console interface. If no character is available within the input buffer, 0 is returned. More... | |
Variables | |
UART_HandleTypeDef | UART_Handle |
#define RCC_PERIPHCLK_USARTx RCC_PERIPHCLK_USART1 |
#define RCC_USARTxCLKSOURCE_HSI RCC_USART1CLKSOURCE_HSI |
#define UART_PORTID USART1 |
#define USARTx_CLK_ENABLE | ( | ) | __HAL_RCC_USART1_CLK_ENABLE(); |
#define USARTx_FORCE_RESET | ( | ) | __HAL_RCC_USART1_FORCE_RESET() |
#define USARTx_RELEASE_RESET | ( | ) | __HAL_RCC_USART1_RELEASE_RESET() |
#define USARTx_RX_AF GPIO_AF7_USART1 |
#define USARTx_RX_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOA_CLK_ENABLE() |
#define USARTx_RX_GPIO_PORT GPIOA |
#define USARTx_RX_PIN GPIO_PIN_10 |
#define USARTx_TX_AF GPIO_AF7_USART1 |
#define USARTx_TX_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOA_CLK_ENABLE() |
#define USARTx_TX_GPIO_PORT GPIOA |
#define USARTx_TX_PIN GPIO_PIN_9 |
The function EwBspConsoleDone terminates a console connection.
unsigned char EwBspConsoleGetCharacter | ( | void | ) |
The function EwBspConsoleGetCharacter returns the current character from the console interface. If no character is available within the input buffer, 0 is returned.
References UART_Handle.
The function EwBspConsoleInit initializes a console connection via UART/USART interface used to print error and trace messages from an Embedded Wizard GUI application. This implementation uses the following configuration:
References UART_Handle, and UART_PORTID.
void EwBspConsolePutCharacter | ( | unsigned char | aCharacter | ) |
The function EwBspConsolePutCharacter sends the given character to the console interface.
aCharacter | - The character to be send via the console interface. |
References UART_Handle.
void HAL_UART_MspDeInit | ( | UART_HandleTypeDef * | huart | ) |
UART MSP Deinitialization - This function configures the hardware resources.
huart | UART handle pointer |
References USARTx_FORCE_RESET, USARTx_RELEASE_RESET, USARTx_RX_GPIO_PORT, USARTx_RX_PIN, USARTx_TX_GPIO_PORT, and USARTx_TX_PIN.
void HAL_UART_MspInit | ( | UART_HandleTypeDef * | huart | ) |
UART MSP Initialization - This function configures the hardware resources.
huart | UART handle pointer |
References RCC_PERIPHCLK_USARTx, RCC_USARTxCLKSOURCE_HSI, USARTx_CLK_ENABLE, USARTx_RX_AF, USARTx_RX_GPIO_CLK_ENABLE, USARTx_RX_GPIO_PORT, USARTx_RX_PIN, USARTx_TX_AF, USARTx_TX_GPIO_CLK_ENABLE, USARTx_TX_GPIO_PORT, and USARTx_TX_PIN.
UART_HandleTypeDef UART_Handle |
UART handle Structure definition