2 FreeRTOS.org V5.2.0 - Copyright (C) 2003-2009 Richard Barry.
\r
4 This file is part of the FreeRTOS.org distribution.
\r
6 FreeRTOS.org is free software; you can redistribute it and/or modify it
\r
7 under the terms of the GNU General Public License (version 2) as published
\r
8 by the Free Software Foundation and modified by the FreeRTOS exception.
\r
10 FreeRTOS.org is distributed in the hope that it will be useful, but WITHOUT
\r
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
15 You should have received a copy of the GNU General Public License along
\r
16 with FreeRTOS.org; if not, write to the Free Software Foundation, Inc., 59
\r
17 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
\r
19 A special exception to the GPL is included to allow you to distribute a
\r
20 combined work that includes FreeRTOS.org without being obliged to provide
\r
21 the source code for any proprietary components. See the licensing section
\r
22 of http://www.FreeRTOS.org for full details.
\r
25 ***************************************************************************
\r
27 * Get the FreeRTOS eBook! See http://www.FreeRTOS.org/Documentation *
\r
29 * This is a concise, step by step, 'hands on' guide that describes both *
\r
30 * general multitasking concepts and FreeRTOS specifics. It presents and *
\r
31 * explains numerous examples that are written using the FreeRTOS API. *
\r
32 * Full source code for all the examples is provided in an accompanying *
\r
35 ***************************************************************************
\r
39 Please ensure to read the configuration and relevant port sections of the
\r
40 online documentation.
\r
42 http://www.FreeRTOS.org - Documentation, latest information, license and
\r
45 http://www.SafeRTOS.com - A version that is certified for use in safety
\r
48 http://www.OpenRTOS.com - Commercial support, development, porting,
\r
49 licensing and training services.
\r
52 /*-----------------------------------------------------------
\r
53 * Portable layer API. Each function must be defined for each port.
\r
54 *----------------------------------------------------------*/
\r
59 /* Include the macro file relevant to the port being used. */
\r
61 #ifdef OPEN_WATCOM_INDUSTRIAL_PC_PORT
\r
62 #include "..\..\Source\portable\owatcom\16bitdos\pc\portmacro.h"
\r
63 typedef void ( __interrupt __far *pxISR )();
\r
66 #ifdef OPEN_WATCOM_FLASH_LITE_186_PORT
\r
67 #include "..\..\Source\portable\owatcom\16bitdos\flsh186\portmacro.h"
\r
68 typedef void ( __interrupt __far *pxISR )();
\r
72 #include "../portable/GCC/ATMega323/portmacro.h"
\r
76 #include "../portable/IAR/ATMega323/portmacro.h"
\r
79 #ifdef MPLAB_PIC24_PORT
\r
80 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
83 #ifdef MPLAB_DSPIC_PORT
\r
84 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
87 #ifdef MPLAB_PIC18F_PORT
\r
88 #include "..\..\Source\portable\MPLAB\PIC18F\portmacro.h"
\r
91 #ifdef MPLAB_PIC32MX_PORT
\r
92 #include "..\..\Source\portable\MPLAB\PIC32MX\portmacro.h"
\r
96 #include "libFreeRTOS/Include/portmacro.h"
\r
100 #include "../../Source/portable/SDCC/Cygnal/portmacro.h"
\r
104 #include "../../Source/portable/GCC/ARM7_LPC2000/portmacro.h"
\r
107 #ifdef GCC_ARM7_ECLIPSE
\r
108 #include "portmacro.h"
\r
111 #ifdef ROWLEY_LPC23xx
\r
112 #include "../../Source/portable/GCC/ARM7_LPC23xx/portmacro.h"
\r
116 #include "..\..\Source\portable\IAR\MSP430\portmacro.h"
\r
120 #include "../../Source/portable/GCC/MSP430F449/portmacro.h"
\r
123 #ifdef ROWLEY_MSP430
\r
124 #include "../../Source/portable/Rowley/MSP430F449/portmacro.h"
\r
127 #ifdef ARM7_LPC21xx_KEIL_RVDS
\r
128 #include "..\..\Source\portable\RVDS\ARM7_LPC21xx\portmacro.h"
\r
132 #include "../../Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h"
\r
136 #include "..\..\Source\portable\IAR\AtmelSAM7S64\portmacro.h"
\r
140 #include "..\..\Source\portable\IAR\AtmelSAM9XE\portmacro.h"
\r
144 #include "..\..\Source\portable\IAR\LPC2000\portmacro.h"
\r
148 #include "..\..\Source\portable\IAR\STR71x\portmacro.h"
\r
152 #include "..\..\Source\portable\IAR\STR75x\portmacro.h"
\r
156 #include "..\..\Source\portable\GCC\STR75x\portmacro.h"
\r
160 #include "..\..\Source\portable\IAR\STR91x\portmacro.h"
\r
164 #include "../../Source/portable/GCC/H8S2329/portmacro.h"
\r
167 #ifdef GCC_AT91FR40008
\r
168 #include "../../Source/portable/GCC/ARM7_AT91FR40008/portmacro.h"
\r
171 #ifdef RVDS_ARMCM3_LM3S102
\r
172 #include "../../Source/portable/RVDS/ARM_CM3/portmacro.h"
\r
175 #ifdef GCC_ARMCM3_LM3S102
\r
176 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
\r
180 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
\r
184 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
187 #ifdef IAR_ARMCM3_LM
\r
188 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
191 #ifdef HCS12_CODE_WARRIOR
\r
192 #include "../../Source/portable/CodeWarrior/HCS12/portmacro.h"
\r
195 #ifdef MICROBLAZE_GCC
\r
196 #include "../../Source/portable/GCC/MicroBlaze/portmacro.h"
\r
200 #include "..\..\Source\portable\Paradigm\Tern_EE\small\portmacro.h"
\r
204 #include "../../Source/portable/GCC/HCS12/portmacro.h"
\r
208 #include "../../Source/portable/GCC/MCF5235/portmacro.h"
\r
211 #ifdef COLDFIRE_V2_GCC
\r
212 #include "../../../Source/portable/GCC/ColdFire_V2/portmacro.h"
\r
215 #ifdef COLDFIRE_V2_CODEWARRIOR
\r
216 #include "../../Source/portable/CodeWarrior/ColdFire_V2/portmacro.h"
\r
220 #include "../../Source/portable/GCC/PPC405_Xilinx/portmacro.h"
\r
223 #ifdef _16FX_SOFTUNE
\r
224 #include "..\..\Source\portable\Softune\MB96340\portmacro.h"
\r
227 #ifdef BCC_INDUSTRIAL_PC_PORT
\r
228 /* A short file name has to be used in place of the normal
\r
229 FreeRTOSConfig.h when using the Borland compiler. */
\r
230 #include "frconfig.h"
\r
231 #include "..\portable\BCC\16BitDOS\PC\prtmacro.h"
\r
232 typedef void ( __interrupt __far *pxISR )();
\r
235 #ifdef BCC_FLASH_LITE_186_PORT
\r
236 /* A short file name has to be used in place of the normal
\r
237 FreeRTOSConfig.h when using the Borland compiler. */
\r
238 #include "frconfig.h"
\r
239 #include "..\portable\BCC\16BitDOS\flsh186\prtmacro.h"
\r
240 typedef void ( __interrupt __far *pxISR )();
\r
244 #ifdef __AVR32_AVR32A__
\r
245 #include "portmacro.h"
\r
249 #ifdef __ICCAVR32__
\r
251 #if __CORE__ == __AVR32A__
\r
252 #include "portmacro.h"
\r
258 #include "portmacro.h"
\r
262 #include "portmacro.h"
\r
266 #ifdef __IAR_V850ES_Fx3__
\r
267 #include "../../Source/portable/IAR/V850ES/portmacro.h"
\r
270 #ifdef __IAR_V850ES_Jx3__
\r
271 #include "../../Source/portable/IAR/V850ES/portmacro.h"
\r
274 #ifdef __IAR_V850ES_Jx3_L__
\r
275 #include "../../Source/portable/IAR/V850ES/portmacro.h"
\r
278 #ifdef __IAR_V850ES_Jx2__
\r
279 #include "../../Source/portable/IAR/V850ES/portmacro.h"
\r
282 #ifdef __IAR_V850ES_Hx2__
\r
283 #include "../../Source/portable/IAR/V850ES/portmacro.h"
\r
286 #ifdef __IAR_78K0R_Kx3__
\r
287 #include "../../Source/portable/IAR/78K0R/portmacro.h"
\r
290 #ifdef __IAR_78K0R_Kx3L__
\r
291 #include "../../Source/portable/IAR/78K0R/portmacro.h"
\r
299 * Setup the stack of a new task so it is ready to be placed under the
\r
300 * scheduler control. The registers have to be placed on the stack in
\r
301 * the order that the port expects to find them.
\r
303 portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters );
\r
306 * Map to the memory management routines required for the port.
\r
308 void *pvPortMalloc( size_t xSize );
\r
309 void vPortFree( void *pv );
\r
310 void vPortInitialiseBlocks( void );
\r
313 * Setup the hardware ready for the scheduler to take control. This generally
\r
314 * sets up a tick interrupt and sets timers for the correct tick frequency.
\r
316 portBASE_TYPE xPortStartScheduler( void );
\r
319 * Undo any hardware/ISR setup that was performed by xPortStartScheduler() so
\r
320 * the hardware is left in its original condition after the scheduler stops
\r
323 void vPortEndScheduler( void );
\r
329 #endif /* PORTABLE_H */
\r