Microchip® Advanced Software Framework

main.c File Reference

FreeRTOS configuration.

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

#include <asf.h>
#include "conf_board.h"

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 void configure_console ( void  )
static

Configure the console UART.

References uart_rs232_options::baudrate, CONF_UART, CONF_UART_BAUDRATE, CONF_UART_PARITY, and stdio_serial_init().

Referenced by main().

int main ( void  )
static void task_led ( void *  pvParameters)
static

This task, when activated, make LED blink at a fixed rate.

References LED0, LED_Toggle, UNUSED, and vTaskDelay().

Referenced by main().

static void task_monitor ( void *  pvParameters)
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  )