Microchip® Advanced Software Framework

freertos_uart_serial.h File Reference

FreeRTOS Peripheral Control API For the UART.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "freertos_peripheral_control.h"
#include "uart.h"

Macros

#define freertos_uart_write_packet(p_uart, data, len, block_time_ticks)   freertos_uart_write_packet_async((p_uart), (data), (len), (block_time_ticks), (NULL))
 Initiate a multi-byte write operation on an UART peripheral. More...
 

Typedefs

typedef void * freertos_uart_if
 Type returned from a call to freertos_uart_serial_init(), and then used to reference a UART port in calls to FreeRTOS peripheral control functions. More...
 

Functions

freertos_uart_if freertos_uart_serial_init (Uart *p_uart, const sam_uart_opt_t *const uart_parameters, const freertos_peripheral_options_t *const freertos_driver_parameters)
 Initializes the FreeRTOS ASF UART driver for the specified UART port. More...
 
uint32_t freertos_uart_serial_read_packet (freertos_uart_if p_uart, uint8_t *data, uint32_t len, portTickType block_time_ticks)
 Initiate a completely multi-byte read operation on a UART peripheral. More...
 
status_code_t freertos_uart_write_packet_async (freertos_uart_if p_uart, const uint8_t *data, size_t len, portTickType block_time_ticks, xSemaphoreHandle notification_semaphore)
 Initiate a completely asynchronous multi-byte write operation on a UART peripheral. More...