]> begriffs open source - cmsis-freertos/blob - Demo/CORTEX_M4_ATSAM4S_Atmel_Studio/CreateProjectDirectoryStructure.bat
Updated pack to FreeRTOS 10.4.6
[cmsis-freertos] / Demo / CORTEX_M4_ATSAM4S_Atmel_Studio / CreateProjectDirectoryStructure.bat
1 REM This file should be executed from the command line prior to the first
2 REM build. Copies all the required files from their location within the standard
3 REM FreeRTOS directory structure to under the Atmel Studio project directory.
4
5 REM Standard paths
6 SET FREERTOS_SOURCE=..\..\Source
7 SET COMMON_SOURCE=..\Common\minimal
8 SET COMMON_INCLUDE=..\Common\include
9
10 REM Have the files already been copied?
11 IF EXIST src\asf\thirdparty\FreeRTOS Goto END
12
13     REM Create the required directory structure.
14     MD src\asf\thirdparty\FreeRTOS
15     MD src\asf\thirdparty\FreeRTOS\include
16     MD src\asf\thirdparty\FreeRTOS\portable
17     MD src\asf\thirdparty\FreeRTOS\portable\GCC
18     MD src\asf\thirdparty\FreeRTOS\portable\GCC\ARM_CM3
19     MD src\asf\thirdparty\FreeRTOS\portable\MemMang
20     MD src\Common-Demo-Source\include
21
22     REM Copy the core kernel files into the project directory
23     copy %FREERTOS_SOURCE%\tasks.c src\asf\thirdparty\FreeRTOS
24     copy %FREERTOS_SOURCE%\queue.c src\asf\thirdparty\FreeRTOS
25     copy %FREERTOS_SOURCE%\list.c src\asf\thirdparty\FreeRTOS
26     copy %FREERTOS_SOURCE%\timers.c src\asf\thirdparty\FreeRTOS
27     copy %FREERTOS_SOURCE%\event_groups.c src\asf\thirdparty\FreeRTOS
28
29     REM Copy the common header files into the project directory
30     copy %FREERTOS_SOURCE%\include\*.* src\asf\thirdparty\FreeRTOS\include
31
32     REM Copy the portable layer files into the project directory
33     copy %FREERTOS_SOURCE%\portable\GCC\ARM_CM3\*.* src\asf\thirdparty\FreeRTOS\portable\GCC\ARM_CM3
34
35     REM Copy the memory allocation files into the project directory
36     copy %FREERTOS_SOURCE%\portable\MemMang\heap_4.c src\asf\thirdparty\FreeRTOS\portable\MemMang
37
38     REM Copy the files that define the common demo tasks.
39     copy %COMMON_SOURCE%\dynamic.c         src\Common-Demo-Source
40     copy %COMMON_SOURCE%\BlockQ.c          src\Common-Demo-Source
41     copy %COMMON_SOURCE%\flash_timer.c     src\Common-Demo-Source
42     copy %COMMON_SOURCE%\death.c           src\Common-Demo-Source
43     copy %COMMON_SOURCE%\blocktim.c        src\Common-Demo-Source
44     copy %COMMON_SOURCE%\semtest.c         src\Common-Demo-Source
45     copy %COMMON_SOURCE%\PollQ.c           src\Common-Demo-Source
46     copy %COMMON_SOURCE%\GenQTest.c        src\Common-Demo-Source
47     copy %COMMON_SOURCE%\recmutex.c        src\Common-Demo-Source
48     copy %COMMON_SOURCE%\countsem.c        src\Common-Demo-Source
49     copy %COMMON_SOURCE%\integer.c         src\Common-Demo-Source
50     copy %COMMON_SOURCE%\QueueSet.c        src\Common-Demo-Source
51     COPY %COMMON_SOURCE%\IntQueue.c        src\Common-Demo-Source
52     COPY %COMMON_SOURCE%\TaskNotify.c      src\Common-Demo-Source
53     COPY %COMMON_SOURCE%\TimerDemo.c       src\Common-Demo-Source
54     COPY %COMMON_SOURCE%\EventGroupsDemo.c src\Common-Demo-Source
55     COPY %COMMON_SOURCE%\IntSemTest.c      src\Common-Demo-Source
56
57     REM Copy the common demo file headers.
58     copy %COMMON_INCLUDE%\*.h              src\Common-Demo-Source\include
59
60 : END