HWA
Bare metal programming with style
|
This class is used by:
configure
:
The read
returns the content of the data register but it does not verify that the transmit buffer of the UART is not empty before reading it. You may have to verify that a character has been received before reading the data register:
The hw_write()
instruction writes a character into the data registerbut it does not verify that the transmit buffer of the UART is not full before writing into it. You may have to verify this first:
The UART status contains the following flags:
pe
or parity_error
dor
or overrun
fe
or frame_error
txqnf
: transmit queue not fulltxc
: transmit completerxc
: receive complete