2 FreeRTOS V5.4.0 - Copyright (C) 2003-2009 Richard Barry.
\r
4 This file is part of the FreeRTOS distribution.
\r
6 FreeRTOS is free software; you can redistribute it and/or modify it under
\r
7 the terms of the GNU General Public License (version 2) as published by the
\r
8 Free Software Foundation and modified by the FreeRTOS exception.
\r
9 **NOTE** The exception to the GPL is included to allow you to distribute a
\r
10 combined work that includes FreeRTOS without being obliged to provide the
\r
11 source code for proprietary components outside of the FreeRTOS kernel.
\r
12 Alternative commercial license and support terms are also available upon
\r
13 request. See the licensing section of http://www.FreeRTOS.org for full
\r
16 FreeRTOS is distributed in the hope that it will be useful, but WITHOUT
\r
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
21 You should have received a copy of the GNU General Public License along
\r
22 with FreeRTOS; if not, write to the Free Software Foundation, Inc., 59
\r
23 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
\r
26 ***************************************************************************
\r
28 * Looking for a quick start? Then check out the FreeRTOS eBook! *
\r
29 * See http://www.FreeRTOS.org/Documentation for details *
\r
31 ***************************************************************************
\r
35 Please ensure to read the configuration and relevant port sections of the
\r
36 online documentation.
\r
38 http://www.FreeRTOS.org - Documentation, latest information, license and
\r
41 http://www.SafeRTOS.com - A version that is certified for use in safety
\r
44 http://www.OpenRTOS.com - Commercial support, development, porting,
\r
45 licensing and training services.
\r
48 /*-----------------------------------------------------------
\r
49 * Portable layer API. Each function must be defined for each port.
\r
50 *----------------------------------------------------------*/
\r
55 /* Include the macro file relevant to the port being used. */
\r
57 #ifdef OPEN_WATCOM_INDUSTRIAL_PC_PORT
\r
58 #include "..\..\Source\portable\owatcom\16bitdos\pc\portmacro.h"
\r
59 typedef void ( __interrupt __far *pxISR )();
\r
62 #ifdef OPEN_WATCOM_FLASH_LITE_186_PORT
\r
63 #include "..\..\Source\portable\owatcom\16bitdos\flsh186\portmacro.h"
\r
64 typedef void ( __interrupt __far *pxISR )();
\r
68 #include "../portable/GCC/ATMega323/portmacro.h"
\r
72 #include "../portable/IAR/ATMega323/portmacro.h"
\r
75 #ifdef MPLAB_PIC24_PORT
\r
76 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
79 #ifdef MPLAB_DSPIC_PORT
\r
80 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
83 #ifdef MPLAB_PIC18F_PORT
\r
84 #include "..\..\Source\portable\MPLAB\PIC18F\portmacro.h"
\r
87 #ifdef MPLAB_PIC32MX_PORT
\r
88 #include "..\..\Source\portable\MPLAB\PIC32MX\portmacro.h"
\r
92 #include "libFreeRTOS/Include/portmacro.h"
\r
96 #include "../../Source/portable/SDCC/Cygnal/portmacro.h"
\r
100 #include "../../Source/portable/GCC/ARM7_LPC2000/portmacro.h"
\r
103 #ifdef GCC_ARM7_ECLIPSE
\r
104 #include "portmacro.h"
\r
107 #ifdef ROWLEY_LPC23xx
\r
108 #include "../../Source/portable/GCC/ARM7_LPC23xx/portmacro.h"
\r
112 #include "..\..\Source\portable\IAR\MSP430\portmacro.h"
\r
116 #include "../../Source/portable/GCC/MSP430F449/portmacro.h"
\r
119 #ifdef ROWLEY_MSP430
\r
120 #include "../../Source/portable/Rowley/MSP430F449/portmacro.h"
\r
123 #ifdef ARM7_LPC21xx_KEIL_RVDS
\r
124 #include "..\..\Source\portable\RVDS\ARM7_LPC21xx\portmacro.h"
\r
128 #include "../../Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h"
\r
132 #include "..\..\Source\portable\IAR\AtmelSAM7S64\portmacro.h"
\r
136 #include "..\..\Source\portable\IAR\AtmelSAM9XE\portmacro.h"
\r
140 #include "..\..\Source\portable\IAR\LPC2000\portmacro.h"
\r
144 #include "..\..\Source\portable\IAR\STR71x\portmacro.h"
\r
148 #include "..\..\Source\portable\IAR\STR75x\portmacro.h"
\r
152 #include "..\..\Source\portable\GCC\STR75x\portmacro.h"
\r
156 #include "..\..\Source\portable\IAR\STR91x\portmacro.h"
\r
160 #include "../../Source/portable/GCC/H8S2329/portmacro.h"
\r
163 #ifdef GCC_AT91FR40008
\r
164 #include "../../Source/portable/GCC/ARM7_AT91FR40008/portmacro.h"
\r
167 #ifdef RVDS_ARMCM3_LM3S102
\r
168 #include "../../Source/portable/RVDS/ARM_CM3/portmacro.h"
\r
171 #ifdef GCC_ARMCM3_LM3S102
\r
172 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
\r
176 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
\r
180 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
183 #ifdef IAR_ARMCM3_LM
\r
184 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
187 #ifdef HCS12_CODE_WARRIOR
\r
188 #include "../../Source/portable/CodeWarrior/HCS12/portmacro.h"
\r
191 #ifdef MICROBLAZE_GCC
\r
192 #include "../../Source/portable/GCC/MicroBlaze/portmacro.h"
\r
196 #include "..\..\Source\portable\Paradigm\Tern_EE\small\portmacro.h"
\r
200 #include "../../Source/portable/GCC/HCS12/portmacro.h"
\r
204 #include "../../Source/portable/GCC/MCF5235/portmacro.h"
\r
207 #ifdef COLDFIRE_V2_GCC
\r
208 #include "../../../Source/portable/GCC/ColdFire_V2/portmacro.h"
\r
211 #ifdef COLDFIRE_V2_CODEWARRIOR
\r
212 #include "../../Source/portable/CodeWarrior/ColdFire_V2/portmacro.h"
\r
216 #include "../../Source/portable/GCC/PPC405_Xilinx/portmacro.h"
\r
220 #include "../../Source/portable/GCC/PPC440_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
294 /* Catch all to ensure portmacro.h is included in the build. Newer demos
\r
295 have the path as part of the project options, rather than as relative from
\r
296 the project location. If portENTER_CRITICAL() has not been defined then
\r
297 portmacro.h has not yet been included - as every portmacro.h provides a
\r
298 portENTER_CRITICAL() definition. Check the demo application for your demo
\r
299 to find the path to the correct portmacro.h file. */
\r
300 #ifndef portENTER_CRITICAL
\r
301 #include "portmacro.h"
\r
309 * Setup the stack of a new task so it is ready to be placed under the
\r
310 * scheduler control. The registers have to be placed on the stack in
\r
311 * the order that the port expects to find them.
\r
314 portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters );
\r
317 * Map to the memory management routines required for the port.
\r
319 void *pvPortMalloc( size_t xSize );
\r
320 void vPortFree( void *pv );
\r
321 void vPortInitialiseBlocks( void );
\r
324 * Setup the hardware ready for the scheduler to take control. This generally
\r
325 * sets up a tick interrupt and sets timers for the correct tick frequency.
\r
327 portBASE_TYPE xPortStartScheduler( void );
\r
330 * Undo any hardware/ISR setup that was performed by xPortStartScheduler() so
\r
331 * the hardware is left in its original condition after the scheduler stops
\r
334 void vPortEndScheduler( void );
\r
340 #endif /* PORTABLE_H */
\r