FreeRTOS+CLI command examples.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "FreeRTOS.h"
#include "task.h"
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "FreeRTOS_CLI.h"
#include "demo-tasks.h"
Functions | |
static portBASE_TYPE | create_task_command (int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString) |
void | created_task (void *pvParameters) |
static portBASE_TYPE | delete_task_command (int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString) |
static portBASE_TYPE | multi_parameter_echo_command (int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString) |
static portBASE_TYPE | run_time_stats_command (int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString) |
static portBASE_TYPE | task_stats_command (int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString) |
static portBASE_TYPE | three_parameter_echo_command (int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString) |
void | vRegisterCLICommands (void) |
Variables | |
static const CLI_Command_Definition_t | create_task_command_definition |
static xTaskHandle | created_task_handle = NULL |
static const CLI_Command_Definition_t | delete_task_command_definition |
static const CLI_Command_Definition_t | multi_parameter_echo_command_definition |
static const CLI_Command_Definition_t | run_time_stats_command_definition |
static const CLI_Command_Definition_t | task_stats_command_definition |
static const CLI_Command_Definition_t | three_parameter_echo_command_definition |
|
static |
void created_task | ( | void * | pvParameters | ) |
References vTaskDelay().
Referenced by create_task_command().
|
static |
References configASSERT, created_task_handle, NULL, pdFALSE, and vTaskDelete().
|
static |
References configASSERT, FreeRTOS_CLIGetParameter(), NULL, pdFALSE, pdPASS, and pdTRUE.
|
static |
References configASSERT, pdFALSE, and vTaskGetRunTimeStats().
|
static |
References configASSERT, pdFALSE, and vTaskList().
|
static |
References configASSERT, FreeRTOS_CLIGetParameter(), pdFALSE, pdPASS, and pdTRUE.
void vRegisterCLICommands | ( | void | ) |
References FreeRTOS_CLIRegisterCommand().
|
static |
|
static |
Referenced by create_task_command(), and delete_task_command().
|
static |
|
static |
|
static |
|
static |
|
static |