]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_M4_ATSAM4S_Atmel_Studio/CreateProjectDirectoryStructure.bat
373445d302d6f615ee288a1d18de12ec080f6a10
[freertos] / FreeRTOS / Demo / CORTEX_M4_ATSAM4S_Atmel_Studio / 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=..\..\Source\r
12 SET COMMON_SOURCE=..\Common\minimal\r
13 SET COMMON_INCLUDE=..\Common\include\r
14 \r
15 REM Have the files already been copied?\r
16 IF EXIST src\asf\thirdparty\FreeRTOS Goto END\r
17 \r
18     REM Create the required directory structure.\r
19     MD src\asf\thirdparty\FreeRTOS\r
20     MD src\asf\thirdparty\FreeRTOS\include\r
21     MD src\asf\thirdparty\FreeRTOS\portable\r
22     MD src\asf\thirdparty\FreeRTOS\portable\GCC\r
23     MD src\asf\thirdparty\FreeRTOS\portable\GCC\ARM_CM3\r
24     MD src\asf\thirdparty\FreeRTOS\portable\MemMang    \r
25     MD src\Common-Demo-Source\include\r
26     \r
27     REM Copy the core kernel files into the project directory\r
28     copy %FREERTOS_SOURCE%\tasks.c src\asf\thirdparty\FreeRTOS\r
29     copy %FREERTOS_SOURCE%\queue.c src\asf\thirdparty\FreeRTOS\r
30     copy %FREERTOS_SOURCE%\list.c src\asf\thirdparty\FreeRTOS\r
31     copy %FREERTOS_SOURCE%\timers.c src\asf\thirdparty\FreeRTOS\r
32 \r
33     REM Copy the common header files into the project directory\r
34     copy %FREERTOS_SOURCE%\include\*.* src\asf\thirdparty\FreeRTOS\include\r
35     \r
36     REM Copy the portable layer files into the project directory\r
37     copy %FREERTOS_SOURCE%\portable\GCC\ARM_CM3\*.* src\asf\thirdparty\FreeRTOS\portable\GCC\ARM_CM3\r
38     \r
39     REM Copy the memory allocation files into the project directory\r
40     copy %FREERTOS_SOURCE%\portable\MemMang\heap_4.c src\asf\thirdparty\FreeRTOS\portable\MemMang\r
41 \r
42     REM Copy the files that define the common demo tasks.\r
43     copy %COMMON_SOURCE%\dynamic.c         src\Common-Demo-Source\r
44     copy %COMMON_SOURCE%\BlockQ.c          src\Common-Demo-Source\r
45     copy %COMMON_SOURCE%\flash_timer.c     src\Common-Demo-Source\r
46     copy %COMMON_SOURCE%\death.c           src\Common-Demo-Source\r
47     copy %COMMON_SOURCE%\blocktim.c        src\Common-Demo-Source\r
48     copy %COMMON_SOURCE%\semtest.c         src\Common-Demo-Source\r
49     copy %COMMON_SOURCE%\PollQ.c           src\Common-Demo-Source\r
50     copy %COMMON_SOURCE%\GenQTest.c        src\Common-Demo-Source\r
51     copy %COMMON_SOURCE%\recmutex.c        src\Common-Demo-Source\r
52     copy %COMMON_SOURCE%\countsem.c        src\Common-Demo-Source\r
53     copy %COMMON_SOURCE%\integer.c         src\Common-Demo-Source\r
54         copy %COMMON_SOURCE%\QueueSet.c        src\Common-Demo-Source\r
55     \r
56     REM Copy the common demo file headers.\r
57     copy %COMMON_INCLUDE%\*.h              src\Common-Demo-Source\include\r
58     \r
59 : END\r