Hardware Abstraction Layer for FreeRTOS
uart.h File Reference
#include <FreeRTOS.h>
#include <semphr.h>
#include <stdint.h>
#include <stdbool.h>
#include <system.h>
#include <hal.h>
Include dependency graph for uart.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  uart_generic
 

Functions

struct uartuart_init (uint8_t port, uint32_t baudrate)
 
int32_t uart_deinit (struct uart *uart)
 
char uart_getc (struct uart *uart, TickType_t waittime)
 
int32_t uart_putc (struct uart *uart, char c, TickType_t waittime)
 
int32_t uart_read (struct uart *uart, uint8_t *data, size_t length, TickType_t waittime)
 
int32_t uart_write (struct uart *uart, uint8_t *data, size_t length, TickType_t waittime)
 
int32_t uart_puts (struct uart *uart, char *s, TickType_t waittime)
 
char uart_getcISR (struct uart *uart)
 
int32_t uart_putcISR (struct uart *uart, char c)
 
int32_t uart_readISR (struct uart *uart, uint8_t *data, size_t length)
 
int32_t uart_writeISR (struct uart *uart, uint8_t *data, size_t length)
 
int32_t uart_putsISR (struct uart *uart, char *s)