Microchip® Advanced Software Framework

freertos_usart_serial.h File Reference

FreeRTOS Peripheral Control API For the USART.

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

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

Macros

#define freertos_usart_write_packet(p_usart, data, len, block_time_ticks)   freertos_usart_write_packet_async((p_usart), (data), (len), (block_time_ticks), (NULL))
 Initiate a multi-byte write operation on an USART peripheral. More...
 

Typedefs

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

Functions

freertos_usart_if freertos_usart_serial_init (Usart *p_usart, const sam_usart_opt_t *const uart_parameters, const freertos_peripheral_options_t *const freertos_driver_parameters)
 Initializes the FreeRTOS ASF USART driver for the specified USART port. More...
 
uint32_t freertos_usart_serial_read_packet (freertos_usart_if p_usart, uint8_t *data, uint32_t len, portTickType block_time_ticks)
 Initiate a completely multi-byte read operation on a USART peripheral. More...
 
status_code_t freertos_usart_write_packet_async (freertos_usart_if p_usart, const uint8_t *data, size_t len, portTickType block_time_ticks, xSemaphoreHandle notification_semaphore)
 Initiate a completely asynchronous multi-byte write operation on a USART peripheral. More...