SAMV71 Xplained Ultra Software Package 1.3

conf_lwip_threads.h

00001 /**************************************************************************
00002  *
00003  * \file
00004  *
00005  * \brief lwIP core & application threads configuration file.
00006  *
00007  * This file contains the possible external configuration of the Ethernet module.
00008  *
00009  * Copyright (c) 2013 Atmel Corporation. All rights reserved.
00010  *
00011  * \asf_license_start
00012  *
00013  * \page License
00014  *
00015  * Redistribution and use in source and binary forms, with or without
00016  * modification, are permitted provided that the following conditions are met:
00017  *
00018  * 1. Redistributions of source code must retain the above copyright notice,
00019  *    this list of conditions and the following disclaimer.
00020  *
00021  * 2. Redistributions in binary form must reproduce the above copyright notice,
00022  *    this list of conditions and the following disclaimer in the documentation
00023  *    and/or other materials provided with the distribution.
00024  *
00025  * 3. The name of Atmel may not be used to endorse or promote products derived
00026  *    from this software without specific prior written permission.
00027  *
00028  * 4. This software may only be redistributed and used in connection with an
00029  *    Atmel microcontroller product.
00030  *
00031  * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
00032  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00033  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
00034  * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
00035  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00036  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00037  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00038  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
00039  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
00040  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00041  * POSSIBILITY OF SUCH DAMAGE.
00042  *
00043  * \asf_license_stop
00044  *
00045  ***************************************************************************/
00046 
00047 #ifndef CONF_LWIP_THREADS_H_INCLUDED
00048 #define CONF_LWIP_THREADS_H_INCLUDED
00049 
00050 #include "board.h"
00051 
00052 /** define stack size for WEB server task */
00053 #define lwipBASIC_WEB_SERVER_STACK_SIZE   256
00054 
00055 /** define stack size for TFTP server task */
00056 #define lwipBASIC_TFTP_SERVER_STACK_SIZE  2048
00057 
00058 /** define stack size for SMTP Client task */
00059 #define lwipBASIC_SMTP_CLIENT_STACK_SIZE  256
00060 
00061 /** define stack size for lwIP task */
00062 #define lwipINTERFACE_STACK_SIZE         2048
00063 
00064 /** define stack size for netif task */
00065 #define netifINTERFACE_TASK_STACK_SIZE    2048
00066 
00067 /** define WEB server priority */
00068 #define lwipBASIC_WEB_SERVER_PRIORITY     (tskIDLE_PRIORITY + 2)
00069 
00070 /** define TFTP server priority */
00071 #define lwipBASIC_TFTP_SERVER_PRIORITY    (tskIDLE_PRIORITY + 3)
00072 
00073 /** define SMTP Client priority */
00074 #define lwipBASIC_SMTP_CLIENT_PRIORITY    (tskIDLE_PRIORITY + 5)
00075 
00076 /** define lwIP task priority */
00077 #define lwipINTERFACE_TASK_PRIORITY       (configMAX_PRIORITIES - 1)
00078 
00079 /** define netif task priority */
00080 #define netifINTERFACE_TASK_PRIORITY      (configMAX_PRIORITIES - 1)
00081 
00082 /** Number of threads that can be started with sys_thread_new() */
00083 #define SYS_THREAD_MAX                    8
00084 
00085 /** LED used by the ethernet task, toggled on each activation */
00086 #define webCONN_LED                       LED1_GPIO
00087 
00088 #endif /* #ifndef CONF_LWIP_THREADS_H_INCLUDED */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines