TTK4155 Lab Node 1
Term project in the NTNU course TTK4155 Embedded and Industrial Computer Systems Design
Loading...
Searching...
No Matches
uart.h File Reference

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.

Detailed Description

UART communication driver.

Todo
Use SRAM to buffer UART transmission

Definition in file uart.h.