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