]> begriffs open source - cmsis-freertos/blob - Demo/RX100-RSK_Renesas_e2studio/CreateProjectDirectoryStructure.bat
Update cmsis_os2.c
[cmsis-freertos] / Demo / RX100-RSK_Renesas_e2studio / 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 Standard paths
11 SET FREERTOS_SOURCE=..\..\Source
12 SET COMMON_SOURCE=..\Common\minimal
13 SET COMMON_INCLUDE=..\Common\include
14
15 REM Have the files already been copied?
16 IF EXIST RTOSDemo\FreeRTOS_Source Goto END
17
18     REM Create the required directory structure.
19     MD RTOSDemo\FreeRTOS_Source
20         MD RTOSDemo\FreeRTOS_Source\include
21         MD RTOSDemo\FreeRTOS_Source\portable
22         MD RTOSDemo\FreeRTOS_Source\portable\MemMang
23         MD RTOSDemo\FreeRTOS_Source\portable\Renesas
24         MD RTOSDemo\FreeRTOS_Source\portable\Renesas\RX100
25     MD RTOSDemo\Common_Demo_Tasks
26         MD RTOSDemo\Common_Demo_Tasks\include
27
28     REM Copy the core kernel files into the project directory
29     copy %FREERTOS_SOURCE%\tasks.c RTOSDemo\FreeRTOS_Source
30     copy %FREERTOS_SOURCE%\queue.c RTOSDemo\FreeRTOS_Source
31     copy %FREERTOS_SOURCE%\list.c RTOSDemo\FreeRTOS_Source
32     copy %FREERTOS_SOURCE%\timers.c RTOSDemo\FreeRTOS_Source
33
34     REM Copy the common header files into the project directory
35     copy %FREERTOS_SOURCE%\include\*.* RTOSDemo\FreeRTOS_Source\include
36
37     REM Copy the portable layer files into the project directory
38     copy %FREERTOS_SOURCE%\portable\Renesas\RX100\*.* RTOSDemo\FreeRTOS_Source\portable\Renesas\RX100
39
40     REM Copy the memory allocation files into the project directory
41     copy %FREERTOS_SOURCE%\portable\MemMang\heap_4.c RTOSDemo\FreeRTOS_Source\portable\MemMang
42
43     REM Copy the files that define the common demo tasks.
44     copy %COMMON_SOURCE%\death.c           RTOSDemo\Common_Demo_Tasks
45     copy %COMMON_SOURCE%\blocktim.c        RTOSDemo\Common_Demo_Tasks
46     copy %COMMON_SOURCE%\GenQTest.c        RTOSDemo\Common_Demo_Tasks
47     copy %COMMON_SOURCE%\recmutex.c        RTOSDemo\Common_Demo_Tasks
48
49     REM Copy the common demo file headers.
50     copy %COMMON_INCLUDE%\*.h              RTOSDemo\Common_Demo_Tasks\include
51
52 : END