]> git.sur5r.net Git - freertos/blob - Demo/lwIP_AVR32_UC3/FreeRTOSConfig.h
Add AVR32 port and demo files.
[freertos] / Demo / lwIP_AVR32_UC3 / FreeRTOSConfig.h
1 /*This file has been prepared for Doxygen automatic documentation generation.*/\r
2 /*! \file *********************************************************************\r
3  *\r
4  * \brief FreeRTOS and lwIP example for AVR32 UC3.\r
5  *\r
6  * - Compiler:           IAR EWAVR32 and GNU GCC for AVR32\r
7  * - Supported devices:  All AVR32 devices can be used.\r
8  * - AppNote:\r
9  *\r
10  * \author               Atmel Corporation: http://www.atmel.com \n\r
11  *                       Support email: avr32@atmel.com\r
12  *\r
13  *****************************************************************************/\r
14 \r
15 /* Copyright (c) 2007, Atmel Corporation All rights reserved.\r
16  *\r
17  * Redistribution and use in source and binary forms, with or without\r
18  * modification, are permitted provided that the following conditions are met:\r
19  *\r
20  * 1. Redistributions of source code must retain the above copyright notice,\r
21  * this list of conditions and the following disclaimer.\r
22  *\r
23  * 2. Redistributions in binary form must reproduce the above copyright notice,\r
24  * this list of conditions and the following disclaimer in the documentation\r
25  * and/or other materials provided with the distribution.\r
26  *\r
27  * 3. The name of ATMEL may not be used to endorse or promote products derived\r
28  * from this software without specific prior written permission.\r
29  *\r
30  * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED\r
31  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
32  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND\r
33  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,\r
34  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\r
35  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
36  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\r
37  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
38  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
39  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
40  */\r
41 \r
42 \r
43 #ifndef FREERTOS_CONFIG_H\r
44 #define FREERTOS_CONFIG_H\r
45 \r
46 #include "board.h"\r
47 \r
48 /*-----------------------------------------------------------\r
49  * Application specific definitions.\r
50  *\r
51  * These definitions should be adjusted for your particular hardware and\r
52  * application requirements.\r
53  *\r
54  * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE\r
55  * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.\r
56  *----------------------------------------------------------*/\r
57 \r
58 #define configUSE_PREEMPTION      1\r
59 #define configUSE_IDLE_HOOK       0\r
60 #define configUSE_TICK_HOOK       0\r
61 #define configCPU_CLOCK_HZ        ( 48000000 ) /* Hz clk gen */\r
62 #define configPBA_CLOCK_HZ        ( 24000000 )\r
63 #define configTICK_RATE_HZ        ( ( portTickType ) 1000 )\r
64 #define configMAX_PRIORITIES      ( ( unsigned portBASE_TYPE ) 8 )\r
65 #define configMINIMAL_STACK_SIZE  ( ( unsigned portSHORT ) 256 )\r
66 #define configTOTAL_HEAP_SIZE     ( ( size_t ) ( 0 ) )\r
67 #define configMAX_TASK_NAME_LEN   ( 20 )\r
68 #define configUSE_TRACE_FACILITY  1\r
69 #define configUSE_16_BIT_TICKS    0\r
70 #define configIDLE_SHOULD_YIELD   1\r
71 \r
72 /* Co-routine definitions. */\r
73 #define configUSE_CO_ROUTINES     0\r
74 #define configMAX_CO_ROUTINE_PRIORITIES ( 0 )\r
75 \r
76 /* Set the following definitions to 1 to include the API function, or zero\r
77 to exclude the API function. */\r
78 \r
79 #define INCLUDE_vTaskPrioritySet        1\r
80 #define INCLUDE_uxTaskPriorityGet       1\r
81 #define INCLUDE_vTaskDelete             1\r
82 #define INCLUDE_vTaskCleanUpResources   0\r
83 #define INCLUDE_vTaskSuspend            1\r
84 #define INCLUDE_vTaskDelayUntil         1\r
85 #define INCLUDE_vTaskDelay              1\r
86 #define INCLUDE_xTaskGetCurrentTaskHandle   1\r
87 \r
88 /* configTICK_USE_TC is a boolean indicating whether to use a Timer Counter\r
89    for the tick generation. Timer Counter will generate an accurate Tick;\r
90    otherwise the CPU will generate a tick but with time drift\r
91    configTICK_TC_CHANNEL is the TC channel.*/\r
92 #define configTICK_USE_TC             1\r
93 #define configTICK_TC_CHANNEL         2\r
94 \r
95 #endif /* FREERTOS_CONFIG_H */\r