Microchip® Advanced Software Framework

task_http.c File Reference

HTTP component task for the HTTP Netconn Example.

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

#include "task_defs.h"
#include "stdio_serial.h"
#include "ethernet.h"
#include "sysclk.h"
#include "lwip/opt.h"
#include "lwip/tcpip.h"
#include "httpd.h"
#include "tc.h"
#include "lwip/stats.h"

Functions

void create_http_task (uint16_t stack_depth_words, unsigned portBASE_TYPE task_priority)
 Create the HTTP task. More...
 
static void http_task (void *pvParameters)
 HTTP task core function. More...
 

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().

static void http_task ( void *  pvParameters)
static

HTTP task core function.

Parameters
pvParametersJunk parameter.

References ERR_OK, http_request(), mainHTTP_TASK_PRIORITY, mainHTTP_TASK_STACK_SIZE, NULL, sys_thread_new(), UNUSED, vTaskDelete(), and WAIT_FOR_TOUCH_EVENT.

Referenced by create_http_task().