1 |
585 |
jeremybenn |
REM This file should be executed from the command line prior to the first
|
2 |
|
|
REM build. It will be necessary to refresh the Eclipse project once the
|
3 |
|
|
REM .bat file has been executed (normally just press F5 to refresh).
|
4 |
|
|
|
5 |
|
|
REM Copies all the required files from their location within the standard
|
6 |
|
|
REM FreeRTOS directory structure to under the Eclipse project directory.
|
7 |
|
|
REM This permits the Eclipse project to be used in 'managed' mode and without
|
8 |
|
|
REM having to setup any linked resources.
|
9 |
|
|
|
10 |
|
|
REM Have the files already been copied?
|
11 |
|
|
IF EXIST FreeRTOS Goto END
|
12 |
|
|
|
13 |
|
|
REM Create the required directory structure.
|
14 |
|
|
MD FreeRTOS
|
15 |
|
|
MD FreeRTOS\include
|
16 |
|
|
MD FreeRTOS\portable
|
17 |
|
|
MD FreeRTOS\portable\MSVC-MingW
|
18 |
|
|
MD FreeRTOS\portable\MemMang
|
19 |
|
|
MD DemoTasks
|
20 |
|
|
MD DemoTasks\include
|
21 |
|
|
|
22 |
|
|
REM Copy the core kernel files.
|
23 |
|
|
copy ..\..\Source\tasks.c FreeRTOS
|
24 |
|
|
copy ..\..\Source\queue.c FreeRTOS
|
25 |
|
|
copy ..\..\Source\list.c FreeRTOS
|
26 |
|
|
|
27 |
|
|
REM Copy the common header files
|
28 |
|
|
|
29 |
|
|
copy ..\..\Source\include\*.* FreeRTOS\include
|
30 |
|
|
|
31 |
|
|
REM Copy the portable layer files
|
32 |
|
|
copy ..\..\Source\portable\MSVC-MingW\*.* FreeRTOS\portable\MSVC-MingW
|
33 |
|
|
|
34 |
|
|
REM Copy the basic memory allocation files
|
35 |
|
|
copy ..\..\Source\portable\MemMang\heap_3.c FreeRTOS\portable\MemMang
|
36 |
|
|
|
37 |
|
|
REM Copy the common demo files that are used by this demo
|
38 |
|
|
copy ..\Common\include\BlockQ.h DemoTasks\include
|
39 |
|
|
copy ..\Common\include\integer.h DemoTasks\include
|
40 |
|
|
copy ..\Common\include\semtest.h DemoTasks\include
|
41 |
|
|
copy ..\Common\include\PollQ.h DemoTasks\include
|
42 |
|
|
copy ..\Common\include\GenQTest.h DemoTasks\include
|
43 |
|
|
copy ..\Common\include\QPeek.h DemoTasks\include
|
44 |
|
|
copy ..\Common\include\flop.h DemoTasks\include
|
45 |
|
|
copy ..\Common\include\recmutex.h DemoTasks\include
|
46 |
|
|
copy ..\Common\Minimal\BlockQ.c DemoTasks
|
47 |
|
|
copy ..\Common\Minimal\integer.c DemoTasks
|
48 |
|
|
copy ..\Common\Minimal\semtest.c DemoTasks
|
49 |
|
|
copy ..\Common\Minimal\PollQ.c DemoTasks
|
50 |
|
|
copy ..\Common\Minimal\GenQTest.c DemoTasks
|
51 |
|
|
copy ..\Common\Minimal\QPeek.c DemoTasks
|
52 |
|
|
copy ..\Common\Minimal\flop.c DemoTasks
|
53 |
|
|
|
54 |
|
|
: END
|