1 REM This file should be executed from the command line prior to the first
\r
2 REM build. It will be necessary to refresh the Eclipse project once the
\r
3 REM .bat file has been executed (normally just press F5 to refresh).
\r
5 REM Copies all the required files from their location within the standard
\r
6 REM FreeRTOS directory structure to under the Eclipse project directory.
\r
7 REM This permits the Eclipse project to be used in 'managed' mode and without
\r
8 REM having to setup any linked resources.
\r
11 SET FREERTOS_SOURCE=..\..\..\FreeRTOS\Source
\r
12 SET FREERTOS_UDP_SOURCE=..\..\Source\FreeRTOS-Plus-UDP
\r
13 SET FREERTOS_CLI_SOURCE=..\..\Source\FreeRTOS-Plus-CLI
\r
15 REM Have the files already been copied?
\r
16 IF EXIST FreeRTOS_Source Goto END
\r
18 REM Create the required directory structure.
\r
20 MD FreeRTOS_Source\include
\r
21 MD FreeRTOS_Source\portable\
\r
22 MD FreeRTOS_Source\portable\GCC
\r
23 MD FreeRTOS_Source\portable\GCC\ARM_CM3
\r
24 MD FreeRTOS_Source\portable\MemMang
\r
25 MD FreeRTOS_Plus_UDP
\r
26 MD FreeRTOS_Plus_UDP\include
\r
27 MD FreeRTOS_Plus_UDP\portable
\r
28 MD FreeRTOS_Plus_UDP\portable\Compiler
\r
29 MD FreeRTOS_Plus_UDP\portable\Compiler\GCC
\r
30 MD FreeRTOS_Plus_UDP\portable\BufferManagement
\r
31 MD FreeRTOS_Plus_UDP\portable\NetworkInterface
\r
32 MD FreeRTOS_Plus_UDP\portable\NetworkInterface\LPC18xx
\r
33 MD FreeRTOS_Plus_CLI
\r
34 MD Examples\Ethernet
\r
36 REM Copy the core kernel files into the SDK projects directory
\r
37 copy %FREERTOS_SOURCE%\tasks.c FreeRTOS_Source
\r
38 copy %FREERTOS_SOURCE%\queue.c FreeRTOS_Source
\r
39 copy %FREERTOS_SOURCE%\list.c FreeRTOS_Source
\r
40 copy %FREERTOS_SOURCE%\timers.c FreeRTOS_Source
\r
42 REM Copy the common header files into the SDK projects directory
\r
43 copy %FREERTOS_SOURCE%\include\*.* FreeRTOS_Source\include
\r
45 REM Copy the portable layer files into the projects directory
\r
46 copy %FREERTOS_SOURCE%\portable\GCC\ARM_CM3\*.* FreeRTOS_Source\portable\GCC\ARM_CM3
\r
48 REM Copy the memory allocation file into the project's directory
\r
49 copy %FREERTOS_SOURCE%\portable\MemMang\heap_4.c FreeRTOS_Source\portable\MemMang
\r
51 REM Copy the FreeRTOS+UDP core files
\r
52 copy %FREERTOS_UDP_SOURCE%\*.c FreeRTOS_Plus_UDP
\r
53 copy %FREERTOS_UDP_SOURCE%\include\*.h FreeRTOS_Plus_UDP
\r
54 copy %FREERTOS_UDP_SOURCE%\readme.txt FreeRTOS_Plus_UDP
\r
55 copy %FREERTOS_UDP_SOURCE%\include\*.* FreeRTOS_Plus_UDP\include
\r
57 REM Copy the FreeRTOS+UDP portable layer files
\r
58 copy %FREERTOS_UDP_SOURCE%\portable\NetworkInterface\LPC18xx\*.* FreeRTOS_Plus_UDP\portable\NetworkInterface\LPC18xx
\r
59 copy %FREERTOS_UDP_SOURCE%\portable\BufferManagement\BufferAllocation_2.c FreeRTOS_Plus_UDP\portable\BufferManagement
\r
60 copy %FREERTOS_UDP_SOURCE%\portable\Compiler\GCC\*.* FreeRTOS_Plus_UDP\portable\Compiler\GCC
\r
62 REM Copy the FreeRTOS+CLI files
\r
63 copy %FREERTOS_CLI_SOURCE%\*.* FreeRTOS_Plus_CLI
\r
65 REM Copy the echo client example implementation
\r
66 copy ..\Common\FreeRTOS_Plus_UDP_Demos\EchoClients\TwoEchoClients.c Examples\Ethernet
\r
67 copy ..\Common\FreeRTOS_Plus_UDP_Demos\EchoClients\TwoEchoClients.h Examples\include
\r
69 REM Copy the example IP trace macro implementation
\r
70 copy ..\Common\FreeRTOS_Plus_UDP_Demos\TraceMacros\Example1\DemoIPTrace.c Examples\Ethernet
\r
71 copy ..\Common\FreeRTOS_Plus_UDP_Demos\TraceMacros\Example1\DemoIPTrace.h Examples\include
\r
73 REM Copy the CLI commands implementation into the project directory.
\r
74 copy ..\Common\FreeRTOS_Plus_UDP_Demos\CLICommands\CLI-commands.c .
\r