]> begriffs open source - cmsis-freertos/blob - Demo/NiosII_CycloneIII_DBC3C40_GCC/CreateProjectDirectoryStructure.bat
Set error state if no delay or already expired
[cmsis-freertos] / Demo / NiosII_CycloneIII_DBC3C40_GCC / CreateProjectDirectoryStructure.bat
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).
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 RTOSDemo\FreeRTOS Goto END
12
13         REM Create the required directory structure.
14         MD RTOSDemo\FreeRTOS
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"
20         
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
25         
26         REM Copy the common header files
27
28         copy ..\..\Source\include\*.* RTOSDemo\FreeRTOS\include
29         
30         REM Copy the portable layer files
31         copy ..\..\Source\portable\GCC\NiosII\*.* RTOSDemo\FreeRTOS\portable\GCC\NiosII
32         
33         REM Copy the basic memory allocation files
34         copy ..\..\Source\portable\MemMang\heap_2.c RTOSDemo\FreeRTOS\portable\MemMang
35
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"
50         
51         REM Copy the common demo file headers.
52         copy ..\Common\include\*.* "RTOSDemo\Common_Demo_Tasks\include"
53         
54 : END