2 FreeRTOS.org V4.3.1 - Copyright (C) 2003-2007 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 See http:www.FreeRTOS.org for documentation, latest information, license
\r
28 and contact details. Please ensure to read the configuration and relevant
\r
29 port sections of the online documentation.
\r
31 Also see http://www.SafeRTOS.com for an IEC 61508 compliant version along
\r
32 with commercial development and support options.
\r
33 ***************************************************************************
\r
36 /*-----------------------------------------------------------
\r
37 * Portable layer API. Each function must be defined for each port.
\r
38 *----------------------------------------------------------*/
\r
43 /* Include the macro file relevant to the port being used. */
\r
45 #ifdef OPEN_WATCOM_INDUSTRIAL_PC_PORT
\r
46 #include "..\..\source\portable\owatcom\16bitdos\pc\portmacro.h"
\r
47 typedef void ( __interrupt __far *pxISR )();
\r
50 #ifdef OPEN_WATCOM_FLASH_LITE_186_PORT
\r
51 #include "..\..\source\portable\owatcom\16bitdos\flsh186\portmacro.h"
\r
52 typedef void ( __interrupt __far *pxISR )();
\r
56 #include "../portable/GCC/ATMega323/portmacro.h"
\r
60 #include "../portable/IAR/ATMega323/portmacro.h"
\r
63 #ifdef MPLAB_PIC24_PORT
\r
64 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
67 #ifdef MPLAB_DSPIC_PORT
\r
68 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
71 #ifdef MPLAB_PIC18F_PORT
\r
72 #include "..\..\source\portable\MPLAB\PIC18F\portmacro.h"
\r
76 #include "libFreeRTOS/Include/portmacro.h"
\r
80 #include "../../Source/portable/SDCC/Cygnal/portmacro.h"
\r
84 #include "../../Source/portable/GCC/ARM7_LPC2000/portmacro.h"
\r
87 #ifdef ROWLEY_LPC23xx
\r
88 #include "../../Source/portable/GCC/ARM7_LPC23xx/portmacro.h"
\r
92 #include "../../Source/portable/GCC/MSP430F449/portmacro.h"
\r
95 #ifdef ROWLEY_MSP430
\r
96 #include "../../Source/portable/Rowley/MSP430F449/portmacro.h"
\r
100 #include "..\..\Source\portable\Keil\ARM7\portmacro.h"
\r
104 #include "../../Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h"
\r
108 #include "..\..\Source\portable\IAR\AtmelSAM7S64\portmacro.h"
\r
112 #include "..\..\Source\portable\IAR\LPC2000\portmacro.h"
\r
116 #include "..\..\Source\portable\IAR\STR71x\portmacro.h"
\r
120 #include "..\..\Source\portable\IAR\STR75x\portmacro.h"
\r
124 #include "..\..\Source\portable\GCC\STR75x\portmacro.h"
\r
128 #include "..\..\Source\portable\IAR\STR91x\portmacro.h"
\r
132 #include "../../Source/portable/GCC/H8S2329/portmacro.h"
\r
135 #ifdef GCC_AT91FR40008
\r
136 #include "../../Source/portable/GCC/ARM7_AT91FR40008/portmacro.h"
\r
139 #ifdef RVDS_ARMCM3_LM3S102
\r
140 #include "../../Source/portable/RVDS/ARM_CM3/portmacro.h"
\r
143 #ifdef GCC_ARMCM3_LM3S102
\r
144 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
\r
148 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
151 #ifdef IAR_ARMCM3_LM
\r
152 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
155 #ifdef HCS12_CODE_WARRIOR
\r
156 #include "../../Source/portable/CodeWarrior/HCS12/portmacro.h"
\r
159 #ifdef MICROBLAZE_GCC
\r
160 #include "../../Source/portable/GCC/MicroBlaze/portmacro.h"
\r
164 #include "..\..\Source\portable\Paradigm\Tern_EE\small\portmacro.h"
\r
168 #include "../../Source/portable/GCC/HCS12/portmacro.h"
\r
172 #include "../../Source/portable/GCC/MCF5235/portmacro.h"
\r
175 #ifdef BCC_INDUSTRIAL_PC_PORT
\r
176 /* A short file name has to be used in place of the normal
\r
177 FreeRTOSConfig.h when using the Borland compiler. */
\r
178 #include "frconfig.h"
\r
179 #include "..\portable\BCC\16BitDOS\PC\prtmacro.h"
\r
180 typedef void ( __interrupt __far *pxISR )();
\r
183 #ifdef BCC_FLASH_LITE_186_PORT
\r
184 /* A short file name has to be used in place of the normal
\r
185 FreeRTOSConfig.h when using the Borland compiler. */
\r
186 #include "frconfig.h"
\r
187 #include "..\portable\BCC\16BitDOS\flsh186\prtmacro.h"
\r
188 typedef void ( __interrupt __far *pxISR )();
\r
192 #ifdef __AVR32_AVR32A__
\r
193 #include "portmacro.h"
\r
197 #ifdef __ICCAVR32__
\r
199 #if __CORE__ == __AVR32A__
\r
200 #include "portmacro.h"
\r
206 * Setup the stack of a new task so it is ready to be placed under the
\r
207 * scheduler control. The registers have to be placed on the stack in
\r
208 * the order that the port expects to find them.
\r
210 portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters );
\r
213 * Map to the memory management routines required for the port.
\r
215 void *pvPortMalloc( size_t xSize );
\r
216 void vPortFree( void *pv );
\r
217 void vPortInitialiseBlocks( void );
\r
220 * Setup the hardware ready for the scheduler to take control. This generally
\r
221 * sets up a tick interrupt and sets timers for the correct tick frequency.
\r
223 portBASE_TYPE xPortStartScheduler( void );
\r
226 * Undo any hardware/ISR setup that was performed by xPortStartScheduler() so
\r
227 * the hardware is left in its original condition after the scheduler stops
\r
230 void vPortEndScheduler( void );
\r
233 #endif /* PORTABLE_H */
\r