24 #define UART_BUFFER_SIZE 64 26 #define UART1_RX_BUFFER_SIZE 256 27 #define UART1_TX_BUFFER_SIZE 256 28 #define UART2_RX_BUFFER_SIZE 128 29 #define UART2_TX_BUFFER_SIZE 64 30 #define UART3_RX_BUFFER_SIZE 256 31 #define UART3_TX_BUFFER_SIZE 256 32 #define MAX_SERIAL_PORTS 3
Universal Synchronous Asynchronous Receiver Transmitter.
bool isUartTransmitBufferEmpty(serialPort_t *s)
void uartWrite(serialPort_t *instance, uint8_t ch)
uint8_t uartTotalBytesWaiting(serialPort_t *instance)
serialPort_t * uartOpen(USART_TypeDef *USARTx, serialReceiveCallbackPtr callback, uint32_t baudRate, portMode_t mode)
void uartSetBaudRate(serialPort_t *s, uint32_t baudRate)
void(* serialReceiveCallbackPtr)(uint16_t data)
uint8_t uartRead(serialPort_t *instance)
DMA_Channel_TypeDef * rxDMAChannel
const struct serialPortVTable uartVTable[]
DMA_Channel_TypeDef * txDMAChannel