Microchip® Advanced Software Framework

main.c File Reference

FreeRTOS configuration.

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

#include "FreeRTOS.h"
#include "task.h"
#include "timers.h"
#include "partest.h"
#include "demo-tasks.h"
#include "conf_example.h"
#include "sysclk.h"

Macros

#define mainCDC_CLI_TASK_PRIORITY   (tskIDLE_PRIORITY + 1)
 
#define mainCDC_CLI_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE * 2)
 
#define mainDEMONSTRATE_ASYNCHRONOUS_API   (0)
 
#define mainDONT_BLOCK   (0)
 
#define mainERROR_LED   (1)
 
#define mainSOFTWARE_TIMER_LED   (0)
 
#define mainSOFTWARE_TIMER_RATE   (200 / portTICK_RATE_MS)
 
#define mainSPI_FLASH_TASK_PRIORITY   (tskIDLE_PRIORITY)
 
#define mainSPI_FLASH_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE * 2)
 
#define mainTWI_EEPROM_TASK_PRIORITY   (tskIDLE_PRIORITY)
 
#define mainTWI_EEPROM_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE * 2)
 
#define mainUART_CLI_TASK_PRIORITY   (tskIDLE_PRIORITY + 1)
 
#define mainUART_CLI_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE * 2)
 
#define mainUSART_CLI_TASK_PRIORITY   (tskIDLE_PRIORITY + 1)
 
#define mainUSART_CLI_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE * 2)
 
#define mainUSART_ECHO_TASK_PRIORITY   (tskIDLE_PRIORITY)
 
#define mainUSART_ECHO_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE)
 

Functions

void assert_triggered (const char *file, uint32_t line)
 
int main (void)
 
static void prvLEDTimerCallback (void *pvParameters)
 
static void prvSetupHardware (void)
 
void vApplicationIdleHook (void)
 
void vApplicationMallocFailedHook (void)
 
void vApplicationStackOverflowHook (xTaskHandle pxTask, signed char *pcTaskName)
 
void vApplicationTickHook (void)
 

#define mainCDC_CLI_TASK_PRIORITY   (tskIDLE_PRIORITY + 1)

Referenced by main().

#define mainCDC_CLI_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE * 2)

Referenced by main().

#define mainDEMONSTRATE_ASYNCHRONOUS_API   (0)

Referenced by main().

#define mainDONT_BLOCK   (0)

Referenced by main().

#define mainERROR_LED   (1)

Referenced by prvLEDTimerCallback().

#define mainSOFTWARE_TIMER_LED   (0)

Referenced by prvLEDTimerCallback().

#define mainSOFTWARE_TIMER_RATE   (200 / portTICK_RATE_MS)

Referenced by main().

#define mainSPI_FLASH_TASK_PRIORITY   (tskIDLE_PRIORITY)

Referenced by main().

#define mainSPI_FLASH_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE * 2)

Referenced by main().

#define mainTWI_EEPROM_TASK_PRIORITY   (tskIDLE_PRIORITY)

Referenced by main().

#define mainTWI_EEPROM_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE * 2)

Referenced by main().

#define mainUART_CLI_TASK_PRIORITY   (tskIDLE_PRIORITY + 1)

Referenced by main().

#define mainUART_CLI_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE * 2)

Referenced by main().

#define mainUSART_CLI_TASK_PRIORITY   (tskIDLE_PRIORITY + 1)

Referenced by main().

#define mainUSART_CLI_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE * 2)

Referenced by main().

#define mainUSART_ECHO_TASK_PRIORITY   (tskIDLE_PRIORITY)

Referenced by main().

#define mainUSART_ECHO_TASK_STACK_SIZE   (configMINIMAL_STACK_SIZE)

Referenced by main().

void assert_triggered ( const char *  file,
uint32_t  line 
)
static void prvLEDTimerCallback ( void *  pvParameters)
static
static void prvSetupHardware ( void  )
static

References board_init(), sysclk_init(), and vParTestInitialise().

Referenced by main().

void vApplicationIdleHook ( void  )

Referenced by portTASK_FUNCTION().

void vApplicationMallocFailedHook ( void  )

References taskDISABLE_INTERRUPTS.

Referenced by pvPortMalloc().

void vApplicationStackOverflowHook ( xTaskHandle  pxTask,
signed char *  pcTaskName 
)
void vApplicationTickHook ( void  )

Referenced by xTaskIncrementTick().