2 FreeRTOS.org V4.7.2 - 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
28 Please ensure to read the configuration and relevant port sections of the
\r
29 online documentation.
\r
31 +++ http://www.FreeRTOS.org +++
\r
32 Documentation, latest information, license and contact details.
\r
34 +++ http://www.SafeRTOS.com +++
\r
35 A version that is certified for use in safety critical systems.
\r
37 +++ http://www.OpenRTOS.com +++
\r
38 Commercial support, development, porting, licensing and training services.
\r
40 ***************************************************************************
\r
43 /*-----------------------------------------------------------
\r
44 * Portable layer API. Each function must be defined for each port.
\r
45 *----------------------------------------------------------*/
\r
50 /* Include the macro file relevant to the port being used. */
\r
52 #ifdef OPEN_WATCOM_INDUSTRIAL_PC_PORT
\r
53 #include "..\..\source\portable\owatcom\16bitdos\pc\portmacro.h"
\r
54 typedef void ( __interrupt __far *pxISR )();
\r
57 #ifdef OPEN_WATCOM_FLASH_LITE_186_PORT
\r
58 #include "..\..\source\portable\owatcom\16bitdos\flsh186\portmacro.h"
\r
59 typedef void ( __interrupt __far *pxISR )();
\r
63 #include "../portable/GCC/ATMega323/portmacro.h"
\r
67 #include "../portable/IAR/ATMega323/portmacro.h"
\r
70 #ifdef MPLAB_PIC24_PORT
\r
71 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
74 #ifdef MPLAB_DSPIC_PORT
\r
75 #include "..\..\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h"
\r
78 #ifdef MPLAB_PIC18F_PORT
\r
79 #include "..\..\source\portable\MPLAB\PIC18F\portmacro.h"
\r
82 #ifdef MPLAB_PIC32MX_PORT
\r
83 #include "..\..\Source\portable\MPLAB\PIC32MX\portmacro.h"
\r
87 #include "libFreeRTOS/Include/portmacro.h"
\r
91 #include "../../Source/portable/SDCC/Cygnal/portmacro.h"
\r
95 #include "../../Source/portable/GCC/ARM7_LPC2000/portmacro.h"
\r
98 #ifdef GCC_ARM7_ECLIPSE
\r
99 #include "portmacro.h"
\r
102 #ifdef ROWLEY_LPC23xx
\r
103 #include "../../Source/portable/GCC/ARM7_LPC23xx/portmacro.h"
\r
107 #include "../../Source/portable/GCC/MSP430F449/portmacro.h"
\r
110 #ifdef ROWLEY_MSP430
\r
111 #include "../../Source/portable/Rowley/MSP430F449/portmacro.h"
\r
115 #include "..\..\Source\portable\Keil\ARM7\portmacro.h"
\r
119 #include "../../Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h"
\r
123 #include "..\..\Source\portable\IAR\AtmelSAM7S64\portmacro.h"
\r
127 #include "..\..\Source\portable\IAR\LPC2000\portmacro.h"
\r
131 #include "..\..\Source\portable\IAR\STR71x\portmacro.h"
\r
135 #include "..\..\Source\portable\IAR\STR75x\portmacro.h"
\r
139 #include "..\..\Source\portable\GCC\STR75x\portmacro.h"
\r
143 #include "..\..\Source\portable\IAR\STR91x\portmacro.h"
\r
147 #include "../../Source/portable/GCC/H8S2329/portmacro.h"
\r
150 #ifdef GCC_AT91FR40008
\r
151 #include "../../Source/portable/GCC/ARM7_AT91FR40008/portmacro.h"
\r
154 #ifdef RVDS_ARMCM3_LM3S102
\r
155 #include "../../Source/portable/RVDS/ARM_CM3/portmacro.h"
\r
158 #ifdef GCC_ARMCM3_LM3S102
\r
159 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
\r
163 #include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
\r
167 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
170 #ifdef IAR_ARMCM3_LM
\r
171 #include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
\r
174 #ifdef HCS12_CODE_WARRIOR
\r
175 #include "../../Source/portable/CodeWarrior/HCS12/portmacro.h"
\r
178 #ifdef MICROBLAZE_GCC
\r
179 #include "../../Source/portable/GCC/MicroBlaze/portmacro.h"
\r
183 #include "..\..\Source\portable\Paradigm\Tern_EE\small\portmacro.h"
\r
187 #include "../../Source/portable/GCC/HCS12/portmacro.h"
\r
191 #include "../../Source/portable/GCC/MCF5235/portmacro.h"
\r
194 #ifdef BCC_INDUSTRIAL_PC_PORT
\r
195 /* A short file name has to be used in place of the normal
\r
196 FreeRTOSConfig.h when using the Borland compiler. */
\r
197 #include "frconfig.h"
\r
198 #include "..\portable\BCC\16BitDOS\PC\prtmacro.h"
\r
199 typedef void ( __interrupt __far *pxISR )();
\r
202 #ifdef BCC_FLASH_LITE_186_PORT
\r
203 /* A short file name has to be used in place of the normal
\r
204 FreeRTOSConfig.h when using the Borland compiler. */
\r
205 #include "frconfig.h"
\r
206 #include "..\portable\BCC\16BitDOS\flsh186\prtmacro.h"
\r
207 typedef void ( __interrupt __far *pxISR )();
\r
211 #ifdef __AVR32_AVR32A__
\r
212 #include "portmacro.h"
\r
216 #ifdef __ICCAVR32__
\r
218 #if __CORE__ == __AVR32A__
\r
219 #include "portmacro.h"
\r
225 #include "portmacro.h"
\r
229 #include "portmacro.h"
\r
236 * Setup the stack of a new task so it is ready to be placed under the
\r
237 * scheduler control. The registers have to be placed on the stack in
\r
238 * the order that the port expects to find them.
\r
240 portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters );
\r
243 * Map to the memory management routines required for the port.
\r
245 void *pvPortMalloc( size_t xSize );
\r
246 void vPortFree( void *pv );
\r
247 void vPortInitialiseBlocks( void );
\r
250 * Setup the hardware ready for the scheduler to take control. This generally
\r
251 * sets up a tick interrupt and sets timers for the correct tick frequency.
\r
253 portBASE_TYPE xPortStartScheduler( void );
\r
256 * Undo any hardware/ISR setup that was performed by xPortStartScheduler() so
\r
257 * the hardware is left in its original condition after the scheduler stops
\r
260 void vPortEndScheduler( void );
\r
266 #endif /* PORTABLE_H */
\r