|
HRI board firmware
v2.1
Microcontroller firmware of the board used during the HRI labs.
|
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... | |
| #define USART_PC_COMM USART2 |
| #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 |
1.8.13