1 |
/* |
---|
2 |
FreeRTOS V5.4.1 - 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 a |
---|
10 |
combined work that includes FreeRTOS without being obliged to provide the |
---|
11 |
source code for proprietary components outside of the FreeRTOS kernel. |
---|
12 |
Alternative commercial license and support terms are also available upon |
---|
13 |
request. See the licensing section of http://www.FreeRTOS.org for full |
---|
14 |
license details. |
---|
15 |
|
---|
16 |
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT |
---|
17 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
18 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
19 |
more details. |
---|
20 |
|
---|
21 |
You should have received a copy of the GNU General Public License along |
---|
22 |
with FreeRTOS; if not, write to the Free Software Foundation, Inc., 59 |
---|
23 |
Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
---|
24 |
|
---|
25 |
|
---|
26 |
*************************************************************************** |
---|
27 |
* * |
---|
28 |
* Looking for a quick start? Then check out the FreeRTOS eBook! * |
---|
29 |
* See http://www.FreeRTOS.org/Documentation for details * |
---|
30 |
* * |
---|
31 |
*************************************************************************** |
---|
32 |
|
---|
33 |
1 tab == 4 spaces! |
---|
34 |
|
---|
35 |
Please ensure to read the configuration and relevant port sections of the |
---|
36 |
online documentation. |
---|
37 |
|
---|
38 |
http://www.FreeRTOS.org - Documentation, latest information, license and |
---|
39 |
contact details. |
---|
40 |
|
---|
41 |
http://www.SafeRTOS.com - A version that is certified for use in safety |
---|
42 |
critical systems. |
---|
43 |
|
---|
44 |
http://www.OpenRTOS.com - Commercial support, development, porting, |
---|
45 |
licensing and training services. |
---|
46 |
*/ |
---|
47 |
|
---|
48 |
#ifndef PROJDEFS_H |
---|
49 |
#define PROJDEFS_H |
---|
50 |
|
---|
51 |
/* Defines the prototype to which task functions must conform. */ |
---|
52 |
typedef void (*pdTASK_CODE)( void * ); |
---|
53 |
|
---|
54 |
#define pdTRUE ( 1 ) |
---|
55 |
#define pdFALSE ( 0 ) |
---|
56 |
|
---|
57 |
#define pdPASS ( 1 ) |
---|
58 |
#define pdFAIL ( 0 ) |
---|
59 |
#define errQUEUE_EMPTY ( 0 ) |
---|
60 |
#define errQUEUE_FULL ( 0 ) |
---|
61 |
|
---|
62 |
/* Error definitions. */ |
---|
63 |
#define errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY ( -1 ) |
---|
64 |
#define errNO_TASK_TO_RUN ( -2 ) |
---|
65 |
#define errQUEUE_BLOCKED ( -4 ) |
---|
66 |
#define errQUEUE_YIELD ( -5 ) |
---|
67 |
|
---|
68 |
#endif /* PROJDEFS_H */ |
---|
69 |
|
---|
70 |
|
---|
71 |
|
---|