2 FreeRTOS.org V4.8.0 - 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! Why not get us to quote to get FreeRTOS.org *
\r
30 * running on your hardware - or even write all or part of your application*
\r
31 * for you? See http://www.OpenRTOS.com for details. *
\r
33 ***************************************************************************
\r
34 ***************************************************************************
\r
36 Please ensure to read the configuration and relevant port sections of the
\r
37 online documentation.
\r
39 http://www.FreeRTOS.org - Documentation, latest information, license and
\r
42 http://www.SafeRTOS.com - A version that is certified for use in safety
\r
45 http://www.OpenRTOS.com - Commercial support, development, porting,
\r
46 licensing and training services.
\r
49 /*-----------------------------------------------------------
\r
50 * Portable layer API. Each function must be defined for each port.
\r
51 *----------------------------------------------------------*/
\r
56 /* Include the macro file relevant to the port being used. */
\r
58 #ifdef OPEN_WATCOM_INDUSTRIAL_PC_PORT
\r
59 #include "..\..\source\portable\owatcom\16bitdos\pc\portmacro.h"
\r
60 typedef void ( __interrupt __far *pxISR )();
\r
63 #ifdef OPEN_WATCOM_FLASH_LITE_186_PORT
\r
64 #include "..\..\source\portable\owatcom\16bitdos\flsh186\portmacro.h"
\r
65 typedef void ( __interrupt __far *pxISR )();
\r
69 #include "../portable/GCC/ATMega323/portmacro.h"
\r
73 #include "../portable/IAR/ATMega323/portmacro.h"
\r
76 #ifdef MPLAB_PIC24_PORT
\r
77 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
80 #ifdef MPLAB_DSPIC_PORT
\r
81 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
84 #ifdef MPLAB_PIC18F_PORT
\r
85 #include "..\..\source\portable\MPLAB\PIC18F\portmacro.h"
\r
88 #ifdef MPLAB_PIC32MX_PORT
\r
89 #include "..\..\Source\portable\MPLAB\PIC32MX\portmacro.h"
\r
93 #include "libFreeRTOS/Include/portmacro.h"
\r
97 #include "../../Source/portable/SDCC/Cygnal/portmacro.h"
\r
101 #include "../../Source/portable/GCC/ARM7_LPC2000/portmacro.h"
\r
104 #ifdef GCC_ARM7_ECLIPSE
\r
105 #include "portmacro.h"
\r
108 #ifdef ROWLEY_LPC23xx
\r
109 #include "../../Source/portable/GCC/ARM7_LPC23xx/portmacro.h"
\r
113 #include "../../Source/portable/GCC/MSP430F449/portmacro.h"
\r
116 #ifdef ROWLEY_MSP430
\r
117 #include "../../Source/portable/Rowley/MSP430F449/portmacro.h"
\r
121 #include "..\..\Source\portable\Keil\ARM7\portmacro.h"
\r
125 #include "../../Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h"
\r
129 #include "..\..\Source\portable\IAR\AtmelSAM7S64\portmacro.h"
\r
133 #include "..\..\Source\portable\IAR\LPC2000\portmacro.h"
\r
137 #include "..\..\Source\portable\IAR\STR71x\portmacro.h"
\r
141 #include "..\..\Source\portable\IAR\STR75x\portmacro.h"
\r
145 #include "..\..\Source\portable\GCC\STR75x\portmacro.h"
\r
149 #include "..\..\Source\portable\IAR\STR91x\portmacro.h"
\r
153 #include "../../Source/portable/GCC/H8S2329/portmacro.h"
\r
156 #ifdef GCC_AT91FR40008
\r
157 #include "../../Source/portable/GCC/ARM7_AT91FR40008/portmacro.h"
\r
160 #ifdef RVDS_ARMCM3_LM3S102
\r
161 #include "../../Source/portable/RVDS/ARM_CM3/portmacro.h"
\r
164 #ifdef GCC_ARMCM3_LM3S102
\r
165 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
\r
169 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
\r
173 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
176 #ifdef IAR_ARMCM3_LM
\r
177 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
180 #ifdef HCS12_CODE_WARRIOR
\r
181 #include "../../Source/portable/CodeWarrior/HCS12/portmacro.h"
\r
184 #ifdef MICROBLAZE_GCC
\r
185 #include "../../Source/portable/GCC/MicroBlaze/portmacro.h"
\r
189 #include "..\..\Source\portable\Paradigm\Tern_EE\small\portmacro.h"
\r
193 #include "../../Source/portable/GCC/HCS12/portmacro.h"
\r
197 #include "../../Source/portable/GCC/MCF5235/portmacro.h"
\r
201 #include "../../Source/portable/GCC/PPC405_Xilinx/portmacro.h"
\r
205 #ifdef BCC_INDUSTRIAL_PC_PORT
\r
206 /* A short file name has to be used in place of the normal
\r
207 FreeRTOSConfig.h when using the Borland compiler. */
\r
208 #include "frconfig.h"
\r
209 #include "..\portable\BCC\16BitDOS\PC\prtmacro.h"
\r
210 typedef void ( __interrupt __far *pxISR )();
\r
213 #ifdef BCC_FLASH_LITE_186_PORT
\r
214 /* A short file name has to be used in place of the normal
\r
215 FreeRTOSConfig.h when using the Borland compiler. */
\r
216 #include "frconfig.h"
\r
217 #include "..\portable\BCC\16BitDOS\flsh186\prtmacro.h"
\r
218 typedef void ( __interrupt __far *pxISR )();
\r
222 #ifdef __AVR32_AVR32A__
\r
223 #include "portmacro.h"
\r
227 #ifdef __ICCAVR32__
\r
229 #if __CORE__ == __AVR32A__
\r
230 #include "portmacro.h"
\r
236 #include "portmacro.h"
\r
240 #include "portmacro.h"
\r
247 * Setup the stack of a new task so it is ready to be placed under the
\r
248 * scheduler control. The registers have to be placed on the stack in
\r
249 * the order that the port expects to find them.
\r
251 portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters );
\r
254 * Map to the memory management routines required for the port.
\r
256 void *pvPortMalloc( size_t xSize );
\r
257 void vPortFree( void *pv );
\r
258 void vPortInitialiseBlocks( void );
\r
261 * Setup the hardware ready for the scheduler to take control. This generally
\r
262 * sets up a tick interrupt and sets timers for the correct tick frequency.
\r
264 portBASE_TYPE xPortStartScheduler( void );
\r
267 * Undo any hardware/ISR setup that was performed by xPortStartScheduler() so
\r
268 * the hardware is left in its original condition after the scheduler stops
\r
271 void vPortEndScheduler( void );
\r
277 #endif /* PORTABLE_H */
\r