HRI board firmware v2.1 Microcontroller firmware of the board used during the HRI labs.

Macros | Typedefs | Functions
uart.h File Reference
`#include "../main.h"`
`#include "../lib/circular_buffer.h"`

Go to the source code of this file.

## Macros
#define | USART_RX_Pin GPIO_Pin_5
#define | USART_RX_PinSource GPIO_PinSource5
#define | USART_RX_Port GPIOD
#define | USART_TX_Pin GPIO_Pin_6
#define | USART_TX_PinSource GPIO_PinSource6
#define | USART_TX_Port GPIOD
#define | USART_PC_COMM USART2

## Typedefs
typedef void(* | uart_rxByteHandlerFunc) (uint8_t rxByte)

## Functions
void | uart_Init (void)
| Initializes the UART module. More...
void | uart_Step (void)
| Copies the received bytes into the user-accessible queue. Reads all the available bytes in the DMA RX buffer, and copies them to the user-accessible queue. More...
cb_CircularBuffer * | uart_GetRxQueue (void)
| Gets the user-accessible queue of the received bytes. More...
void | uart_SendByteAsync (uint8_t data)
| Asynchronously sends the given byte through the UART bus. More...
void | uart_SendBytesAsync (uint8_t *data, int length)
| Asynchronously sends the given bytes through the UART bus. More...
void | uart_FlushTx (void)
| Start the DMA to send the bytes waiting in the intermediate buffer. More...

## Macro Definition Documentation

## ◆ USART_PC_COMM

#define USART_PC_COMM USART2

## ◆ USART_RX_Pin

#define USART_RX_Pin GPIO_Pin_5

## ◆ USART_RX_PinSource

#define USART_RX_PinSource GPIO_PinSource5

## ◆ USART_RX_Port

#define USART_RX_Port GPIOD

## ◆ USART_TX_Pin

#define USART_TX_Pin GPIO_Pin_6

## ◆ USART_TX_PinSource

#define USART_TX_PinSource GPIO_PinSource6

## ◆ USART_TX_Port

#define USART_TX_Port GPIOD