FreeRTOS Peripheral Control API Functions.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <conf_board.h>
#include "status_codes.h"
#include "pdc.h"
#include "FreeRTOS.h"
#include "semphr.h"
Data Structures | |
struct | freertos_peripheral_options |
Define the behaviour of FreeRTOS ASF read and write functions for a peripheral. More... | |
Macros | |
#define | USE_RX_ACCESS_MUTEX 0x02 |
Bit definition used in the options_flags member of a freertos_peripheral_options_t structure passed as a parameter to an initialization function to indicate that reads from the peripheral being initialized must be thread aware. More... | |
#define | USE_TX_ACCESS_SEM 0x01 |
Bit definition used in the options_flags member of a freertos_peripheral_options_t structure passed as a parameter to an initialization function to indicate that writes to the peripheral being initialized must be thread aware. More... | |
#define | WAIT_RX_COMPLETE 0x08 |
Bit definition used in the options_flags member of a freertos_peripheral_options_t structure passed as a parameter to an initialization function to indicate that a task reading from the peripheral must be held in the FreeRTOS Blocked state until the read has completed. More... | |
#define | WAIT_TX_COMPLETE 0x04 |
Bit definition used in the options_flags member of a freertos_peripheral_options_t structure passed as a parameter to an initialization function to indicate that a task writing to the peripheral must be held in the FreeRTOS Blocked state until the write has completed. More... | |
Typedefs | |
typedef struct freertos_peripheral_options | freertos_peripheral_options_t |
Define the behaviour of FreeRTOS ASF read and write functions for a peripheral. More... | |
Enumerations | |
enum | peripheral_operation_mode { USART_RS232 = 0, UART_RS232, SPI_MASTER, TWI_I2C_MASTER, TWIHS_I2C_MASTER, NOT_SUPPORTED } |
Defines the operating modes that can be specified in a freertos_peripheral_options_t structure. More... | |