LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
lpc43xx_m0_FreeRTOSConfig.h
Go to the documentation of this file.
1
/*
2
FreeRTOS V7.1.1 - Copyright (C) 2011 Real Time Engineers Ltd.
3
4
5
***************************************************************************
6
* *
7
* FreeRTOS tutorial books are available in pdf and paperback. *
8
* Complete, revised, and edited pdf reference manuals are also *
9
* available. *
10
* *
11
* Purchasing FreeRTOS documentation will not only help you, by *
12
* ensuring you get running as quickly as possible and with an *
13
* in-depth knowledge of how to use FreeRTOS, it will also help *
14
* the FreeRTOS project to continue with its mission of providing *
15
* professional grade, cross platform, de facto standard solutions *
16
* for microcontrollers - completely free of charge! *
17
* *
18
* >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
19
* *
20
* Thank you for using FreeRTOS, and thank you for your support! *
21
* *
22
***************************************************************************
23
24
25
This file is part of the FreeRTOS distribution.
26
27
FreeRTOS is free software; you can redistribute it and/or modify it under
28
the terms of the GNU General Public License (version 2) as published by the
29
Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
30
>>>NOTE<<< The modification to the GPL is included to allow you to
31
distribute a combined work that includes FreeRTOS without being obliged to
32
provide the source code for proprietary components outside of the FreeRTOS
33
kernel. FreeRTOS is distributed in the hope that it will be useful, but
34
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
35
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
36
more details. You should have received a copy of the GNU General Public
37
License and the FreeRTOS license exception along with FreeRTOS; if not it
38
can be viewed here: http://www.freertos.org/a00114.html and also obtained
39
by writing to Richard Barry, contact details for whom are available on the
40
FreeRTOS WEB site.
41
42
1 tab == 4 spaces!
43
44
http://www.FreeRTOS.org - Documentation, latest information, license and
45
contact details.
46
47
http://www.SafeRTOS.com - A version that is certified for use in safety
48
critical systems.
49
50
http://www.OpenRTOS.com - Commercial support, development, porting,
51
licensing and training services.
52
*/
53
54
55
#ifndef FREERTOS_CONFIG_H
56
#define FREERTOS_CONFIG_H
57
58
#ifndef __IASMARM__
59
/* For SystemCoreClock */
60
#include "board.h"
61
#endif
62
63
/*-----------------------------------------------------------
64
* Application specific definitions.
65
*
66
* These definitions should be adjusted for your particular hardware and
67
* application requirements.
68
*
69
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
70
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
71
*
72
* See http://www.freertos.org/a00110.html.
73
*----------------------------------------------------------*/
74
75
#define configUSE_PREEMPTION 1
76
#define configUSE_IDLE_HOOK 1
77
#define configUSE_TICK_HOOK 0
78
#define configCPU_CLOCK_HZ ( SystemCoreClock )
79
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
80
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 8 )
81
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 128 )
82
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 0 ) )
83
#define configMAX_TASK_NAME_LEN ( 10 )
84
#define configUSE_TRACE_FACILITY 1
85
#define configUSE_16_BIT_TICKS 0
86
#define configIDLE_SHOULD_YIELD 1
87
#define configUSE_MUTEXES 1
88
#define configQUEUE_REGISTRY_SIZE 8
89
#define configCHECK_FOR_STACK_OVERFLOW 2
90
#define configUSE_RECURSIVE_MUTEXES 1
91
#define configUSE_MALLOC_FAILED_HOOK 1
92
#define configUSE_APPLICATION_TASK_TAG 0
93
#define configUSE_COUNTING_SEMAPHORES 1
94
#define configGENERATE_RUN_TIME_STATS 0
95
96
/* Co-routine definitions. */
97
#define configUSE_CO_ROUTINES 0
98
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
99
100
/* Software timer definitions. This example uses I2C to write to the LEDs. As
101
this takes a finite time, and because a timer callback writes to an LED, the
102
priority of the timer task is kept to a minimum to ensure it does not disrupt
103
test tasks that check their own execution times. */
104
#define configUSE_TIMERS 0
105
#define configTIMER_TASK_PRIORITY ( 0 )
106
#define configTIMER_QUEUE_LENGTH 5
107
#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE * 2 )
108
109
/* Set the following definitions to 1 to include the API function, or zero
110
to exclude the API function. */
111
#define INCLUDE_vTaskPrioritySet 1
112
#define INCLUDE_uxTaskPriorityGet 1
113
#define INCLUDE_vTaskDelete 1
114
#define INCLUDE_vTaskCleanUpResources 1
115
#define INCLUDE_vTaskSuspend 1
116
#define INCLUDE_vTaskDelayUntil 1
117
#define INCLUDE_vTaskDelay 1
118
#define INCLUDE_xTaskGetCurrentTaskHandle 1
119
120
/* Cortex-M specific definitions. */
121
#ifdef __NVIC_PRIO_BITS
122
/* __BVIC_PRIO_BITS will be specified when CMSIS is being used. */
123
#define configPRIO_BITS __NVIC_PRIO_BITS
124
#else
125
#define configPRIO_BITS 5
/* 32 priority levels */
126
#endif
127
128
/* The lowest interrupt priority that can be used in a call to a "set priority"
129
function. */
130
#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 0x1f
131
132
/* The highest interrupt priority that can be used by any interrupt service
133
routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT CALL
134
INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER
135
PRIORITY THAN THIS! (higher priorities are lower numeric values. */
136
#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5
137
138
/* Interrupt priorities used by the kernel port layer itself. These are generic
139
to all Cortex-M ports, and do not rely on any particular library functions. */
140
#define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
141
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
142
143
/* Normal assert() semantics without relying on the provision of an assert.h
144
header file. */
145
#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }
146
147
#define configUSE_CUSTOM_TICK 1
148
149
#define vPortSVCHandler SVC_Handler
150
#define xPortPendSVHandler PendSV_Handler
151
#define xPortSysTickHandler RIT_IRQHandler
152
153
#endif
/* FREERTOS_CONFIG_H */
154
applications
lpc18xx_43xx
examples
43xx_dualcore
lwip
lwip_httpserver_freertos
configs
lpc43xx_m0_FreeRTOSConfig.h
Generated on Fri Nov 16 2012 13:36:32 for LPCOpen Platform by
1.8.2