28#if (HAL_USE_UART == TRUE) || defined(__DOXYGEN__)
47#if !defined(PLATFORM_UART_USE_UART1) || defined(__DOXYGEN__)
48#define PLATFORM_UART_USE_UART1 FALSE
146#if (UART_USE_WAIT == TRUE) || defined(__DOXYGEN__)
160#if (UART_USE_MUTUAL_EXCLUSION == TRUE) || defined(__DOXYGEN__)
166#if defined(UART_DRIVER_EXT_FIELDS)
167 UART_DRIVER_EXT_FIELDS
180#if (PLATFORM_UART_USE_UART1 == TRUE) && !defined(__DOXYGEN__)
void * thread_reference_t
Type of a thread reference.
uint32_t mutex_t
Type of a mutex.
struct hal_uart_config UARTConfig
Driver configuration structure.
void(* uartecb_t)(UARTDriver *uartp, uartflags_t e)
Receive error UART notification callback type.
void uart_lld_start_send(UARTDriver *uartp, size_t n, const void *txbuf)
Starts a transmission on the UART peripheral.
void uart_lld_start(UARTDriver *uartp)
Configures and activates the UART peripheral.
void(* uartcb_t)(UARTDriver *uartp)
Generic UART notification callback type.
uartstate_t
Driver state machine possible states.
uartrxstate_t
Receiver state machine states.
uarttxstate_t
Transmitter state machine states.
void(* uartccb_t)(UARTDriver *uartp, uint16_t c)
Character received UART notification callback type.
UARTDriver UARTD1
UART1 driver identifier.
void uart_lld_init(void)
Low level UART driver initialization.
uint32_t uartflags_t
UART driver condition flags type.
size_t uart_lld_stop_send(UARTDriver *uartp)
Stops any ongoing transmission.
void uart_lld_start_receive(UARTDriver *uartp, size_t n, void *rxbuf)
Starts a receive operation on the UART peripheral.
size_t uart_lld_stop_receive(UARTDriver *uartp)
Stops any ongoing receive operation.
void uart_lld_stop(UARTDriver *uartp)
Deactivates the UART peripheral.
struct hal_uart_driver UARTDriver
Type of structure representing an UART driver.
Driver configuration structure.
uartcb_t rxend_cb
Receive buffer filled callback.
uartecb_t rxerr_cb
Receive error callback.
uartcb_t txend1_cb
End of transmission buffer callback.
uartccb_t rxchar_cb
Character received while out if the UART_RECEIVE state.
uartcb_t txend2_cb
Physical end of transmission callback.
Structure representing an UART driver.
const UARTConfig * config
Current configuration data.
uartstate_t state
Driver state.
thread_reference_t threadrx
Waiting thread on RX.
uartrxstate_t rxstate
Receiver state.
thread_reference_t threadtx
Waiting thread on TX.
bool early
Synchronization flag for transmit operations.
mutex_t mutex
Mutex protecting the peripheral.
uarttxstate_t txstate
Transmitter state.