FreeRTOS configuration.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | TASK_LED_STACK_PRIORITY (tskIDLE_PRIORITY) |
#define | TASK_LED_STACK_SIZE (1024/sizeof(portSTACK_TYPE)) |
#define | TASK_MONITOR_STACK_PRIORITY (tskIDLE_PRIORITY) |
#define | TASK_MONITOR_STACK_SIZE (2048/sizeof(portSTACK_TYPE)) |
Functions | |
static void | configure_console (void) |
Configure the console UART. More... | |
int | main (void) |
FreeRTOS Real Time Kernel example entry point. More... | |
static void | task_led (void *pvParameters) |
This task, when activated, make LED blink at a fixed rate. More... | |
static void | task_monitor (void *pvParameters) |
This task, when activated, send every ten seconds on debug UART the whole report of free heap and total tasks status. More... | |
void | vApplicationIdleHook (void) |
This function is called by FreeRTOS idle task. More... | |
void | vApplicationMallocFailedHook (void) |
void | vApplicationStackOverflowHook (xTaskHandle *pxTask, signed char *pcTaskName) |
Called if stack overflow during execution. More... | |
void | vApplicationTickHook (void) |
This function is called by FreeRTOS each tick. More... | |
void | xPortSysTickHandler (void) |
#define TASK_LED_STACK_PRIORITY (tskIDLE_PRIORITY) |
Referenced by main().
#define TASK_LED_STACK_SIZE (1024/sizeof(portSTACK_TYPE)) |
Referenced by main().
#define TASK_MONITOR_STACK_PRIORITY (tskIDLE_PRIORITY) |
Referenced by main().
#define TASK_MONITOR_STACK_SIZE (2048/sizeof(portSTACK_TYPE)) |
Referenced by main().
|
static |
Configure the console UART.
References uart_rs232_options::baudrate, CONF_UART, CONF_UART_BAUDRATE, CONF_UART_CHAR_LENGTH, CONF_UART_PARITY, CONF_UART_STOP_BITS, and stdio_serial_init().
Referenced by main().
int main | ( | void | ) |
FreeRTOS Real Time Kernel example entry point.
References board_init(), BOARD_NAME, configure_console(), pdPASS, sysclk_init(), task_led(), TASK_LED_STACK_PRIORITY, TASK_LED_STACK_SIZE, task_monitor(), TASK_MONITOR_STACK_PRIORITY, TASK_MONITOR_STACK_SIZE, and vTaskStartScheduler().
|
static |
This task, when activated, make LED blink at a fixed rate.
References LED0, LED_Toggle, UNUSED, and vTaskDelay().
Referenced by main().
|
static |
This task, when activated, send every ten seconds on debug UART the whole report of free heap and total tasks status.
References UNUSED, uxTaskGetNumberOfTasks(), vTaskDelay(), and vTaskList().
Referenced by main().
void vApplicationIdleHook | ( | void | ) |
This function is called by FreeRTOS idle task.
Referenced by portTASK_FUNCTION().
void vApplicationMallocFailedHook | ( | void | ) |
References configASSERT.
Referenced by pvPortMalloc().
void vApplicationStackOverflowHook | ( | xTaskHandle * | pxTask, |
signed char * | pcTaskName | ||
) |
Called if stack overflow during execution.
void vApplicationTickHook | ( | void | ) |
This function is called by FreeRTOS each tick.
Referenced by xTaskIncrementTick().
void xPortSysTickHandler | ( | void | ) |