Microchip® Advanced Software Framework

task_defs.h File Reference

HTTP Netconn Example.

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

#include <FreeRTOS.h>
#include <StackMacros.h>
#include <croutine.h>
#include <list.h>
#include <mpu_wrappers.h>
#include <portable.h>
#include <projdefs.h>
#include <queue.h>
#include <semphr.h>
#include <task.h>
#include <timers.h>
#include <pmc.h>
#include <sysclk.h>

Macros

#define mainGFX_TASK_PRIORITY   (tskIDLE_PRIORITY + 1)
 The priorities at which various tasks will get created. More...
 
#define mainGFX_TASK_STACK_SIZE   (256)
 The stack sizes allocated to the DSP stack: (256 * 4) = 1024 bytes. More...
 
#define mainHTTP_TASK_PRIORITY   (tskIDLE_PRIORITY + 2)
 The priorities at which various tasks will get created. More...
 
#define mainHTTP_TASK_STACK_SIZE   (256)
 The stack sizes allocated to the DSP stack: (256 * 4) = 1024 bytes. More...
 
#define WAIT_FOR_TOUCH_EVENT   {while (app_hold) vTaskDelay(instructions_delay);}
 Wait for user to touch screen. More...
 

Functions

void create_gfx_task (uint16_t stack_depth_words, unsigned portBASE_TYPE task_priority)
 Create the GFX task. More...
 
void create_http_task (uint16_t stack_depth_words, unsigned portBASE_TYPE task_priority)
 Create the HTTP task. More...
 

Variables

uint32_t app_hold
 Used to block the application on instruction screen. More...
 
const portTickType instructions_delay
 Small delay to hold tasks, during instruction screen. More...
 

#define mainGFX_TASK_PRIORITY   (tskIDLE_PRIORITY + 1)

The priorities at which various tasks will get created.

Referenced by main().

#define mainGFX_TASK_STACK_SIZE   (256)

The stack sizes allocated to the DSP stack: (256 * 4) = 1024 bytes.

Referenced by main().

#define mainHTTP_TASK_PRIORITY   (tskIDLE_PRIORITY + 2)

The priorities at which various tasks will get created.

Referenced by http_task(), and main().

#define mainHTTP_TASK_STACK_SIZE   (256)

The stack sizes allocated to the DSP stack: (256 * 4) = 1024 bytes.

Referenced by http_task(), and main().

#define WAIT_FOR_TOUCH_EVENT   {while (app_hold) vTaskDelay(instructions_delay);}

Wait for user to touch screen.

Referenced by http_task().

void create_gfx_task ( uint16_t  stack_depth_words,
unsigned portBASE_TYPE  task_priority 
)

Create the GFX task.

Parameters
stack_depth_wordsTask stack size in 32 bits word.
task_priorityTask priority.

References gfx_init(), gfx_task(), NULL, and xTaskCreate.

Referenced by main().

void create_http_task ( uint16_t  stack_depth_words,
unsigned portBASE_TYPE  task_priority 
)

Create the HTTP task.

Parameters
stack_depth_wordsTask stack size in 32 bits word.
task_priorityTask priority.

References http_task(), NULL, and xTaskCreate.

Referenced by main().

uint32_t app_hold

Used to block the application on instruction screen.

Referenced by gfx_task().

const portTickType instructions_delay

Small delay to hold tasks, during instruction screen.