FreeRTOS demo task implementations.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
Task configuration | |
#define | UART_TASK_PRIORITY (tskIDLE_PRIORITY + 3) |
#define | UART_TASK_DELAY (10 / portTICK_RATE_MS) |
#define | MAIN_TASK_PRIORITY (tskIDLE_PRIORITY + 2) |
#define | MAIN_TASK_DELAY (100 / portTICK_RATE_MS) |
#define | GRAPH_TASK_PRIORITY (tskIDLE_PRIORITY + 1) |
#define | GRAPH_TASK_DELAY (50 / portTICK_RATE_MS) |
#define | TERMINAL_TASK_PRIORITY (tskIDLE_PRIORITY + 1) |
#define | TERMINAL_TASK_DELAY (1000 / portTICK_RATE_MS) |
#define | ABOUT_TASK_PRIORITY (tskIDLE_PRIORITY + 1) |
#define | ABOUT_TASK_DELAY (33 / portTICK_RATE_MS) |
Functions | |
static void | cdc_rx_handler (uint8_t instance) |
Interrupt handler for reception from EDBG Virtual COM Port. More... | |
void | demotasks_init (void) |
Initialize tasks and resources for demo. More... | |
Tasks for demo | |
static void | main_task (void *params) |
Main demo task. More... | |
static void | graph_task (void *params) |
Graph task. More... | |
static void | terminal_task (void *params) |
Terminal task. More... | |
static void | about_task (void *params) |
About task. More... | |
static void | uart_task (void *params) |
UART task. More... | |
Global constants and variables | |
static const char | menu_items_text [MENU_NUM_ITEMS][6] |
Labels for menu items. More... | |
static const char | about_text [] |
Text to display on about screen when tickless operation is disabled. More... | |
static const char | about_text_tickless [] |
Text to display on about screen when tickless operation is enabled. More... | |
static struct usart_module | cdc_usart |
Instance for Embedded Debugger (EDBG) Virtual COM Port driver. More... | |
static uint8_t | graph_noise = 128 |
Pseudo-random noise for graph task. More... | |
static uint8_t | terminal_buffer [TERMINAL_BUFFER_LINES][TERMINAL_BUFFER_COLUMNS] |
Buffer for terminal text. More... | |
static uint8_t | terminal_line_offset |
Index of latest terminal line (first to be printed) More... | |
static xQueueHandle | terminal_in_queue |
Queue for incoming terminal characters. More... | |
static xSemaphoreHandle | display_mutex |
Semaphore to signal busy display. More... | |
static xSemaphoreHandle | terminal_mutex |
Semaphore to signal busy terminal buffer. More... | |
static xTaskHandle | terminal_task_handle |
Handle for terminal output task. More... | |
static xTaskHandle | about_task_handle |
Handle for about screen task. More... | |
static | OLED1_CREATE_INSTANCE (oled1, OLED1_EXT_HEADER) |
Instance for OLED1 Xplained Pro LED and button driver. More... | |