2 FreeRTOS.org V5.1.1 - Copyright (C) 2003-2008 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
\r
7 it under the terms of the GNU General Public License as published by
\r
8 the Free Software Foundation; either version 2 of the License, or
\r
9 (at your option) any later version.
\r
11 FreeRTOS.org is distributed in the hope that it will be useful,
\r
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 GNU General Public License for more details.
\r
16 You should have received a copy of the GNU General Public License
\r
17 along with FreeRTOS.org; if not, write to the Free Software
\r
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
20 A special exception to the GPL can be applied should you wish to distribute
\r
21 a combined work that includes FreeRTOS.org, without being obliged to provide
\r
22 the source code for any proprietary components. See the licensing section
\r
23 of http:www.FreeRTOS.org for full details of how and when the exception
\r
26 ***************************************************************************
\r
27 ***************************************************************************
\r
29 * SAVE TIME AND MONEY! We can port FreeRTOS.org to your own hardware, *
\r
30 * and even write all or part of your application on your behalf. *
\r
31 * See http://www.OpenRTOS.com for details of the services we provide to *
\r
32 * expedite your project. *
\r
34 ***************************************************************************
\r
35 ***************************************************************************
\r
37 Please ensure to read the configuration and relevant port sections of the
\r
38 online documentation.
\r
40 http://www.FreeRTOS.org - Documentation, latest information, license and
\r
43 http://www.SafeRTOS.com - A version that is certified for use in safety
\r
46 http://www.OpenRTOS.com - Commercial support, development, porting,
\r
47 licensing and training services.
\r
50 /*-----------------------------------------------------------
\r
51 * Portable layer API. Each function must be defined for each port.
\r
52 *----------------------------------------------------------*/
\r
57 /* Include the macro file relevant to the port being used. */
\r
59 #ifdef OPEN_WATCOM_INDUSTRIAL_PC_PORT
\r
60 #include "..\..\source\portable\owatcom\16bitdos\pc\portmacro.h"
\r
61 typedef void ( __interrupt __far *pxISR )();
\r
64 #ifdef OPEN_WATCOM_FLASH_LITE_186_PORT
\r
65 #include "..\..\source\portable\owatcom\16bitdos\flsh186\portmacro.h"
\r
66 typedef void ( __interrupt __far *pxISR )();
\r
70 #include "../portable/GCC/ATMega323/portmacro.h"
\r
74 #include "../portable/IAR/ATMega323/portmacro.h"
\r
77 #ifdef MPLAB_PIC24_PORT
\r
78 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
81 #ifdef MPLAB_DSPIC_PORT
\r
82 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
85 #ifdef MPLAB_PIC18F_PORT
\r
86 #include "..\..\source\portable\MPLAB\PIC18F\portmacro.h"
\r
89 #ifdef MPLAB_PIC32MX_PORT
\r
90 #include "..\..\Source\portable\MPLAB\PIC32MX\portmacro.h"
\r
94 #include "libFreeRTOS/Include/portmacro.h"
\r
98 #include "../../Source/portable/SDCC/Cygnal/portmacro.h"
\r
102 #include "../../Source/portable/GCC/ARM7_LPC2000/portmacro.h"
\r
105 #ifdef GCC_ARM7_ECLIPSE
\r
106 #include "portmacro.h"
\r
109 #ifdef ROWLEY_LPC23xx
\r
110 #include "../../Source/portable/GCC/ARM7_LPC23xx/portmacro.h"
\r
114 #include "..\..\Source\portable\IAR\MSP430\portmacro.h"
\r
118 #include "../../Source/portable/GCC/MSP430F449/portmacro.h"
\r
121 #ifdef ROWLEY_MSP430
\r
122 #include "../../Source/portable/Rowley/MSP430F449/portmacro.h"
\r
125 #ifdef ARM7_LPC21xx_KEIL_RVDS
\r
126 #include "..\..\Source\portable\RVDS\ARM7_LPC21xx\portmacro.h"
\r
130 #include "../../Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h"
\r
134 #include "..\..\Source\portable\IAR\AtmelSAM7S64\portmacro.h"
\r
138 #include "..\..\Source\portable\IAR\AtmelSAM9XE\portmacro.h"
\r
142 #include "..\..\Source\portable\IAR\LPC2000\portmacro.h"
\r
146 #include "..\..\Source\portable\IAR\STR71x\portmacro.h"
\r
150 #include "..\..\Source\portable\IAR\STR75x\portmacro.h"
\r
154 #include "..\..\Source\portable\GCC\STR75x\portmacro.h"
\r
158 #include "..\..\Source\portable\IAR\STR91x\portmacro.h"
\r
162 #include "../../Source/portable/GCC/H8S2329/portmacro.h"
\r
165 #ifdef GCC_AT91FR40008
\r
166 #include "../../Source/portable/GCC/ARM7_AT91FR40008/portmacro.h"
\r
169 #ifdef RVDS_ARMCM3_LM3S102
\r
170 #include "../../Source/portable/RVDS/ARM_CM3/portmacro.h"
\r
173 #ifdef GCC_ARMCM3_LM3S102
\r
174 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
\r
178 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
\r
182 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
185 #ifdef IAR_ARMCM3_LM
\r
186 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
189 #ifdef HCS12_CODE_WARRIOR
\r
190 #include "../../Source/portable/CodeWarrior/HCS12/portmacro.h"
\r
193 #ifdef MICROBLAZE_GCC
\r
194 #include "../../Source/portable/GCC/MicroBlaze/portmacro.h"
\r
198 #include "..\..\Source\portable\Paradigm\Tern_EE\small\portmacro.h"
\r
202 #include "../../Source/portable/GCC/HCS12/portmacro.h"
\r
206 #include "../../Source/portable/GCC/MCF5235/portmacro.h"
\r
209 #ifdef COLDFIRE_V2_GCC
\r
210 #include "../../../source/portable/GCC/ColdFire_V2/portmacro.h"
\r
213 #ifdef COLDFIRE_V2_CODEWARRIOR
\r
214 #include "../../Source/portable/CodeWarrior/ColdFire_V2/portmacro.h"
\r
218 #include "../../Source/portable/GCC/PPC405_Xilinx/portmacro.h"
\r
222 #ifdef BCC_INDUSTRIAL_PC_PORT
\r
223 /* A short file name has to be used in place of the normal
\r
224 FreeRTOSConfig.h when using the Borland compiler. */
\r
225 #include "frconfig.h"
\r
226 #include "..\portable\BCC\16BitDOS\PC\prtmacro.h"
\r
227 typedef void ( __interrupt __far *pxISR )();
\r
230 #ifdef BCC_FLASH_LITE_186_PORT
\r
231 /* A short file name has to be used in place of the normal
\r
232 FreeRTOSConfig.h when using the Borland compiler. */
\r
233 #include "frconfig.h"
\r
234 #include "..\portable\BCC\16BitDOS\flsh186\prtmacro.h"
\r
235 typedef void ( __interrupt __far *pxISR )();
\r
239 #ifdef __AVR32_AVR32A__
\r
240 #include "portmacro.h"
\r
244 #ifdef __ICCAVR32__
\r
246 #if __CORE__ == __AVR32A__
\r
247 #include "portmacro.h"
\r
253 #include "portmacro.h"
\r
257 #include "portmacro.h"
\r
264 * Setup the stack of a new task so it is ready to be placed under the
\r
265 * scheduler control. The registers have to be placed on the stack in
\r
266 * the order that the port expects to find them.
\r
268 portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters );
\r
271 * Map to the memory management routines required for the port.
\r
273 void *pvPortMalloc( size_t xSize );
\r
274 void vPortFree( void *pv );
\r
275 void vPortInitialiseBlocks( void );
\r
278 * Setup the hardware ready for the scheduler to take control. This generally
\r
279 * sets up a tick interrupt and sets timers for the correct tick frequency.
\r
281 portBASE_TYPE xPortStartScheduler( void );
\r
284 * Undo any hardware/ISR setup that was performed by xPortStartScheduler() so
\r
285 * the hardware is left in its original condition after the scheduler stops
\r
288 void vPortEndScheduler( void );
\r
294 #endif /* PORTABLE_H */
\r