ChibiOS 21.11.4
hal_uart.c File Reference

UART Driver code. More...

#include "hal.h"

Go to the source code of this file.

Functions

void uartInit (void)
 UART Driver initialization.
void uartObjectInit (UARTDriver *uartp)
 Initializes the standard part of a UARTDriver structure.
msg_t uartStart (UARTDriver *uartp, const UARTConfig *config)
 Configures and activates the UART peripheral.
void uartStop (UARTDriver *uartp)
 Deactivates the UART peripheral.
void uartStartSend (UARTDriver *uartp, size_t n, const void *txbuf)
 Starts a transmission on the UART peripheral.
void uartStartSendI (UARTDriver *uartp, size_t n, const void *txbuf)
 Starts a transmission on the UART peripheral.
size_t uartStopSend (UARTDriver *uartp)
 Stops any ongoing transmission.
size_t uartStopSendI (UARTDriver *uartp)
 Stops any ongoing transmission.
void uartStartReceive (UARTDriver *uartp, size_t n, void *rxbuf)
 Starts a receive operation on the UART peripheral.
void uartStartReceiveI (UARTDriver *uartp, size_t n, void *rxbuf)
 Starts a receive operation on the UART peripheral.
size_t uartStopReceive (UARTDriver *uartp)
 Stops any ongoing receive operation.
size_t uartStopReceiveI (UARTDriver *uartp)
 Stops any ongoing receive operation.
msg_t uartSendTimeout (UARTDriver *uartp, size_t *np, const void *txbuf, sysinterval_t timeout)
 Performs a transmission on the UART peripheral.
msg_t uartSendFullTimeout (UARTDriver *uartp, size_t *np, const void *txbuf, sysinterval_t timeout)
 Performs a transmission on the UART peripheral.
msg_t uartReceiveTimeout (UARTDriver *uartp, size_t *np, void *rxbuf, sysinterval_t timeout)
 Performs a receive operation on the UART peripheral.
void uartAcquireBus (UARTDriver *uartp)
 Gains exclusive access to the UART bus.
void uartReleaseBus (UARTDriver *uartp)
 Releases exclusive access to the UART bus.

Detailed Description

UART Driver code.

Definition in file hal_uart.c.