]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Demo/FreeRTOS_Plus_UDP_and_CLI_LPC1830_GCC/CreateProjectDirectoryStructure.bat
Make corrections to the interrupt priority configuration in the LPC1800 UDP demo...
[freertos] / FreeRTOS-Plus / Demo / FreeRTOS_Plus_UDP_and_CLI_LPC1830_GCC / CreateProjectDirectoryStructure.bat
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
4 \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
9 \r
10 REM Standard paths\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
14 set FREERTOS_TRACE_RECORDER_SOURCE=..\..\Source\FreeRTOS-Plus-Trace\r
15 \r
16 REM Have the files already been copied?\r
17 IF EXIST FreeRTOS_Source Goto END\r
18 \r
19     REM Create the required directory structure.\r
20     MD FreeRTOS_Source\r
21     MD FreeRTOS_Source\include\r
22     MD FreeRTOS_Source\portable\\r
23         MD FreeRTOS_Source\portable\GCC\r
24     MD FreeRTOS_Source\portable\GCC\ARM_CM3\r
25     MD FreeRTOS_Source\portable\MemMang\r
26         MD FreeRTOS_Plus_UDP\r
27         MD FreeRTOS_Plus_UDP\include\r
28         MD FreeRTOS_Plus_UDP\portable\r
29         MD FreeRTOS_Plus_UDP\portable\Compiler\r
30         MD FreeRTOS_Plus_UDP\portable\Compiler\GCC\r
31         MD FreeRTOS_Plus_UDP\portable\BufferManagement\r
32         MD FreeRTOS_Plus_UDP\portable\NetworkInterface\r
33         MD FreeRTOS_Plus_UDP\portable\NetworkInterface\LPC18xx\r
34         MD FreeRTOS_Plus_CLI\r
35         MD Examples\Ethernet\r
36 \r
37     REM Copy the core kernel files into the SDK projects directory\r
38     copy %FREERTOS_SOURCE%\tasks.c FreeRTOS_Source\r
39     copy %FREERTOS_SOURCE%\queue.c FreeRTOS_Source\r
40     copy %FREERTOS_SOURCE%\list.c FreeRTOS_Source\r
41     copy %FREERTOS_SOURCE%\timers.c FreeRTOS_Source\r
42 \r
43     REM Copy the common header files into the SDK projects directory\r
44     copy %FREERTOS_SOURCE%\include\*.* FreeRTOS_Source\include\r
45 \r
46     REM Copy the portable layer files into the projects directory\r
47     copy %FREERTOS_SOURCE%\portable\GCC\ARM_CM3\*.* FreeRTOS_Source\portable\GCC\ARM_CM3\r
48 \r
49     REM Copy the memory allocation file into the project's directory\r
50     copy %FREERTOS_SOURCE%\portable\MemMang\heap_4.c FreeRTOS_Source\portable\MemMang\r
51 \r
52         REM Copy the FreeRTOS+UDP core files\r
53         copy %FREERTOS_UDP_SOURCE%\*.c 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
56 \r
57         REM Copy the FreeRTOS+UDP portable layer files\r
58         copy %FREERTOS_UDP_SOURCE%\portable\NetworkInterface\LPC18xx\Using_CMSISv2p10_LPC18xx_DriverLib\*.* 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
61 \r
62         REM Copy the FreeRTOS+CLI files\r
63         copy %FREERTOS_CLI_SOURCE%\*.* FreeRTOS_Plus_CLI\r
64         \r
65         REM Copy the FreeRTOS+Trace recorder files\r
66         copy %FREERTOS_TRACE_RECORDER_SOURCE%\*.* ThirdParty\FreeRTOS_Plus_Trace_Recorder\r
67         copy %FREERTOS_TRACE_RECORDER_SOURCE%\include\*.* ThirdParty\FreeRTOS_Plus_Trace_Recorder\include\r
68 \r
69         REM Copy the echo client example implementation\r
70         copy ..\Common\FreeRTOS_Plus_UDP_Demos\EchoClients\TwoEchoClients.c Examples\Ethernet\r
71         copy ..\Common\FreeRTOS_Plus_UDP_Demos\EchoClients\TwoEchoClients.h Examples\include\r
72 \r
73         REM Copy the example IP trace macro implementation\r
74         copy ..\Common\FreeRTOS_Plus_UDP_Demos\TraceMacros\Example1\DemoIPTrace.c Examples\Ethernet\r
75         copy ..\Common\FreeRTOS_Plus_UDP_Demos\TraceMacros\Example1\DemoIPTrace.h Examples\include\r
76 \r
77         REM Copy the CLI commands implementation into the project directory.\r
78         copy ..\Common\FreeRTOS_Plus_UDP_Demos\CLICommands\CLI-commands.c .\r
79 \r
80 : END\r