|
TTK4155 Lab Node 1
Term project in the NTNU course TTK4155 Embedded and Industrial Computer Systems Design
|
UART communication driver. More...
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | USART_config |
| USART configuration structure. More... | |
Functions | |
| int | USART_init (struct USART_config *config) |
| Initialize USART0 with the given configuration. | |
| int | USART_endl (void) |
| Transmit CRLF as end-of-line. | |
| int | USART_Transmit (unsigned char data) |
| Transmit a single byte via USART0. | |
| int | USART_SendString (char data[]) |
| Send a zero-terminated string over USART0. | |
| int | USART_Receive (void) |
| Receive one byte from USART0. (Minimal implementation.). | |
| int | USART_ReceiveHandler (void) |
| Handle incoming received bytes and simple command echoing. | |