OpenMPTL - STM32 (common)
C++ Microprocessor Template Library
|
Universal synchronous asynchronous receiver transmitter (USART), common to all stm32 processors. More...
#include <usart.hpp>
Classes | |
struct | BRR |
Baud rate register. More... | |
struct | CR1 |
Control register 1. More... | |
struct | CR2 |
Control register 2. More... | |
struct | CR3 |
Control register 3. More... | |
struct | DR |
Data register. More... | |
struct | GTPR |
Guard time and prescaler register. More... | |
struct | SR |
Status register. More... | |
NOTE: We use std::uint_fast16_t to access the registers. This way we leave it up to the compiler to use either 16-bit or 32-bit integers for the access_type. More precicely: "use fastest unsigned integer type with width of at least 16 bits". In most situations the compiler toolchain (gcc-4.8) will choose 32bit integers for ARM / ARM-Thumb(2).
TODO: move ^^^this^^^ text to the "register access" discussion.