00001 /*This file is prepared for Doxygen automatic documentation generation.*/ 00015 /* Copyright (c) 2009 Atmel Corporation. All rights reserved. 00016 * 00017 * Redistribution and use in source and binary forms, with or without 00018 * modification, are permitted provided that the following conditions are met: 00019 * 00020 * 1. Redistributions of source code must retain the above copyright notice, this 00021 * list of conditions and the following disclaimer. 00022 * 00023 * 2. Redistributions in binary form must reproduce the above copyright notice, 00024 * this list of conditions and the following disclaimer in the documentation 00025 * and/or other materials provided with the distribution. 00026 * 00027 * 3. The name of Atmel may not be used to endorse or promote products derived 00028 * from this software without specific prior written permission. 00029 * 00030 * 4. This software may only be redistributed and used in connection with an Atmel 00031 * AVR product. 00032 * 00033 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 00034 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00035 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 00036 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 00037 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00038 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00039 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00040 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00041 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00042 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE 00043 * 00044 */ 00045 00046 #ifndef FREERTOS_CONFIG_H 00047 #define FREERTOS_CONFIG_H 00048 00049 #include "board.h" 00050 00051 00052 /*----------------------------------------------------------- 00053 * Application specific definitions. 00054 * 00055 * These definitions should be adjusted for your particular hardware and 00056 * application requirements. 00057 * 00058 * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE 00059 * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE. 00060 *----------------------------------------------------------*/ 00061 00062 #define configUSE_PREEMPTION 1 00063 #define configUSE_IDLE_HOOK 0 00064 #define configUSE_TICK_HOOK 0 00065 #define configCPU_CLOCK_HZ ( 66000000 ) /* Hz clk gen */ 00066 #define configPBA_CLOCK_HZ ( 33000000 ) 00067 #define configTICK_RATE_HZ ( ( portTickType ) 1000 ) 00068 #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 8 ) 00069 #define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 256 ) 00070 /* configTOTAL_HEAP_SIZE is not used when heap_3.c is used. */ 00071 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 1024*25 ) ) 00072 #define configMAX_TASK_NAME_LEN ( 20 ) 00073 #define configUSE_TRACE_FACILITY 1 00074 #define configUSE_16_BIT_TICKS 0 00075 #define configIDLE_SHOULD_YIELD 1 00076 00077 /* Co-routine definitions. */ 00078 #define configUSE_CO_ROUTINES 0 00079 #define configMAX_CO_ROUTINE_PRIORITIES ( 0 ) 00080 00081 /* Set the following definitions to 1 to include the API function, or zero 00082 to exclude the API function. */ 00083 00084 #define INCLUDE_vTaskPrioritySet 1 00085 #define INCLUDE_uxTaskPriorityGet 1 00086 #define INCLUDE_vTaskDelete 1 00087 #define INCLUDE_vTaskCleanUpResources 0 00088 #define INCLUDE_vTaskSuspend 1 00089 #define INCLUDE_vTaskDelayUntil 1 00090 #define INCLUDE_vTaskDelay 1 00091 #define INCLUDE_xTaskGetCurrentTaskHandle 1 00092 #define INCLUDE_xTaskGetSchedulerState 0 00093 00094 /* configTICK_USE_TC is a boolean indicating whether to use a Timer Counter or 00095 the CPU Cycle Counter for the tick generation. 00096 Both methods will generate an accurate tick. 00097 0: Use of the CPU Cycle Counter. 00098 1: Use of the Timer Counter (configTICK_TC_CHANNEL is the TC channel). */ 00099 #define configTICK_USE_TC 0 00100 #define configTICK_TC_CHANNEL 2 00101 00102 /* configHEAP_INIT is a boolean indicating whether to initialize the heap with 00103 0xA5 in order to be able to determine the maximal heap consumption. */ 00104 #define configHEAP_INIT 0 00105 00106 00107 #endif /* FREERTOS_CONFIG_H */
1.5.5