openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
FreeRTOSConfig.h
Go to the documentation of this file.
1/*
2 FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
3
4 This file is part of the FreeRTOS distribution.
5
6 FreeRTOS is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License (version 2) as published by the
8 Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
9 ***NOTE*** The exception to the GPL is included to allow you to distribute
10 a combined work that includes FreeRTOS without being obliged to provide the
11 source code for proprietary components outside of the FreeRTOS kernel.
12 FreeRTOS is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 more details. You should have received a copy of the GNU General Public
16 License and the FreeRTOS license exception along with FreeRTOS; if not it
17 can be viewed here: http://www.freertos.org/a00114.html and also obtained
18 by writing to Richard Barry, contact details for whom are available on the
19 FreeRTOS WEB site.
20
21 1 tab == 4 spaces!
22
23http://www.FreeRTOS.org - Documentation, latest information, license and
24contact details.
25
26http://www.SafeRTOS.com - A version that is certified for use in safety
27critical systems.
28
29http://www.OpenRTOS.com - Commercial support, development, porting,
30licensing and training services.
31 */
32
33/******************************************************************************
34 See http://www.freertos.org/a00110.html for an explanation of the
35 definitions contained in this file.
36 ******************************************************************************/
37
38#ifndef FREERTOS_CONFIG_H
39#define FREERTOS_CONFIG_H
40
41/*-----------------------------------------------------------
42 * Application specific definitions.
43 *
44 * These definitions should be adjusted for your particular hardware and
45 * application requirements.
46 *
47 * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
48 * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
49 *----------------------------------------------------------*/
50
51#define configUSE_PREEMPTION 1
52#define configUSE_IDLE_HOOK 0
53#define configMAX_PRIORITIES ( 6 )
54#define configUSE_TICK_HOOK 0
55#define configCPU_CLOCK_HZ ( ( unsigned long ) 8000000)
56#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
57#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 )
58#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 0x4000 ) )
59#define configMAX_TASK_NAME_LEN ( 12 )
60#define configUSE_TRACE_FACILITY 1
61#define configUSE_16_BIT_TICKS 0
62#define configIDLE_SHOULD_YIELD 0
63#define configUSE_CO_ROUTINES 0
64#define configUSE_MUTEXES 1
65#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
66#define configUSE_COUNTING_SEMAPHORES 0
67#define configUSE_ALTERNATIVE_API 0
68#define configCHECK_FOR_STACK_OVERFLOW 1
69#define configUSE_RECURSIVE_MUTEXES 0
70#define configQUEUE_REGISTRY_SIZE 3
71#define configGENERATE_RUN_TIME_STATS 0
72#define configUSE_MALLOC_FAILED_HOOK 0
73#define configENABLE_BACKWARD_COMPATIBILITY 1
74#define configUSE_APPLICATION_TASK_TAG 0
75#define configUSE_TASK_NOTIFICATIONS 1
76#define configUSE_STATS_FORMATTING_FUNCTIONS 0
77#define configAPPLICATION_ALLOCATED_HEAP 1
78#define configSUPPORT_DYNAMIC_ALLOCATION 1
79#define configUSE_TIMERS 1
80#define configTIMER_TASK_PRIORITY 5
81#define configTIMER_QUEUE_LENGTH 2
82#define configTIMER_TASK_STACK_DEPTH 128
83
84void vAssertCalled( char* file, uint32_t line);
85#define configASSERT( x ) if( ( x ) == 0 ) { vAssertCalled( __FILE__, __LINE__ );}
86
87#if (configGENERATE_RUN_TIME_STATS == 1)
88#include "chip_lpc175x_6x.h"
89extern void vConfigureTimerForRunTimeStats( void );
90#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() vConfigureTimerForRunTimeStats()
91#define portGET_RUN_TIME_COUNTER_VALUE() LPC_TIMER0->TC
92#endif
93
94/* Set the following definitions to 1 to include the API function, or zero
95 to exclude the API function. */
96
97#define INCLUDE_vTaskPrioritySet 1
98#define INCLUDE_uxTaskPriorityGet 0
99#define INCLUDE_vTaskDelete 1
100#define INCLUDE_vTaskCleanUpResources 1
101#define INCLUDE_vTaskSuspend 1
102#define INCLUDE_vTaskDelayUntil 1
103#define INCLUDE_vTaskDelay 1
104#define INCLUDE_uxTaskGetStackHighWaterMark 1
105#define INCLUDE_xTaskGetCurrentTaskHandle 1
106
107/* Use the system definition, if there is one */
108#ifdef __NVIC_PRIO_BITS
109#define configPRIO_BITS __NVIC_PRIO_BITS
110#else
111#define configPRIO_BITS 5 /* 32 priority levels */
112#endif
113
114/* The lowest priority. */
115#define configKERNEL_INTERRUPT_PRIORITY ( 31 << (8 - configPRIO_BITS) )
116/* Priority 5, or 160 as only the top three bits are implemented. */
117#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( 5 << (8 - configPRIO_BITS) )
118
119/*
120 * Use the Cortex-M3 optimisations, rather than the generic C implementation.
121 */
122#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
123
124#define vPortSVCHandler SVC_Handler
125#define xPortPendSVHandler PendSV_Handler
126#define xPortSysTickHandler SysTick_Handler
127
128#endif /* FREERTOS_CONFIG_H */
129
void vAssertCalled(char *file, uint32_t line)