1 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).
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.
10 REM Have the files already been copied?
11 IF EXIST RTOSDemo\FreeRTOS Goto END
13 REM Create the required directory structure.
15 MD RTOSDemo\FreeRTOS\include
16 MD RTOSDemo\FreeRTOS\portable\GCC\NiosII
17 MD RTOSDemo\FreeRTOS\portable\MemMang
18 MD "RTOSDemo\Common_Demo_Tasks"
19 MD "RTOSDemo\Common_Demo_Tasks\include"
21 REM Copy the core kernel files.
22 copy ..\..\Source\tasks.c RTOSDemo\FreeRTOS
23 copy ..\..\Source\queue.c RTOSDemo\FreeRTOS
24 copy ..\..\Source\list.c RTOSDemo\FreeRTOS
26 REM Copy the common header files
28 copy ..\..\Source\include\*.* RTOSDemo\FreeRTOS\include
30 REM Copy the portable layer files
31 copy ..\..\Source\portable\GCC\NiosII\*.* RTOSDemo\FreeRTOS\portable\GCC\NiosII
33 REM Copy the basic memory allocation files
34 copy ..\..\Source\portable\MemMang\heap_2.c RTOSDemo\FreeRTOS\portable\MemMang
36 REM Copy the files that define the Common_Demo_Tasks.
37 copy ..\Common\minimal\BlockQ.c "RTOSDemo\Common_Demo_Tasks"
38 copy ..\Common\minimal\blocktim.c "RTOSDemo\Common_Demo_Tasks"
39 copy ..\Common\minimal\comtest.c "RTOSDemo\Common_Demo_Tasks"
40 copy ..\Common\minimal\countsem.c "RTOSDemo\Common_Demo_Tasks"
41 copy ..\Common\minimal\death.c "RTOSDemo\Common_Demo_Tasks"
42 copy ..\Common\minimal\dynamic.c "RTOSDemo\Common_Demo_Tasks"
43 copy ..\Common\minimal\flash.c "RTOSDemo\Common_Demo_Tasks"
44 copy ..\Common\minimal\GenQTest.c "RTOSDemo\Common_Demo_Tasks"
45 copy ..\Common\minimal\integer.c "RTOSDemo\Common_Demo_Tasks"
46 copy ..\Common\minimal\PollQ.c "RTOSDemo\Common_Demo_Tasks"
47 copy ..\Common\minimal\QPeek.c "RTOSDemo\Common_Demo_Tasks"
48 copy ..\Common\minimal\recmutex.c "RTOSDemo\Common_Demo_Tasks"
49 copy ..\Common\minimal\semtest.c "RTOSDemo\Common_Demo_Tasks"
51 REM Copy the common demo file headers.
52 copy ..\Common\include\*.* "RTOSDemo\Common_Demo_Tasks\include"