|
STM32 Traffic Control
|
Public API for UART2 peripheral. More...
#include <stdint.h>#include "stm32f446xx.h"Go to the source code of this file.
Macros | |
| #define | LOG(fmt, ...) |
| Format for printf. | |
Functions | |
| void | uart2_init (void) |
| Initialize UART2 peripheral. | |
| void | uart2_write (int ch) |
| Transmit a single character over UART2. | |
Public API for UART2 peripheral.
| #define LOG | ( | fmt, | |
| ... ) |
Format for printf.
| void uart2_init | ( | void | ) |
Initialize UART2 peripheral.
UART2 is configured for basic asynchronous communication and is used primarily for logging and debugging.
| void uart2_write | ( | int | ch | ) |
Transmit a single character over UART2.
This function blocks until the transmit data register is empty, then writes the provided character to the UART data register.
| ch | Character to transmit. |