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.
6 SET FREERTOS_SOURCE=..\..\Source
7 SET COMMON_SOURCE=..\Common\minimal
8 SET COMMON_INCLUDE=..\Common\include
10 REM Have the files already been copied?
11 IF EXIST src\asf\thirdparty\FreeRTOS Goto END
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
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
28 REM Copy the common header files into the project directory
29 copy %FREERTOS_SOURCE%\include\*.* src\asf\thirdparty\FreeRTOS\include
31 REM Copy the portable layer files into the project directory
32 copy %FREERTOS_SOURCE%\portable\GCC\ARM_CM3\*.* src\asf\thirdparty\FreeRTOS\portable\GCC\ARM_CM3
34 REM Copy the memory allocation files into the project directory
35 copy %FREERTOS_SOURCE%\portable\MemMang\heap_4.c src\asf\thirdparty\FreeRTOS\portable\MemMang
37 REM Copy the files that define the common demo tasks.
38 copy %COMMON_SOURCE%\dynamic.c src\Common-Demo-Source
39 copy %COMMON_SOURCE%\BlockQ.c src\Common-Demo-Source
40 copy %COMMON_SOURCE%\flash_timer.c src\Common-Demo-Source
41 copy %COMMON_SOURCE%\death.c src\Common-Demo-Source
42 copy %COMMON_SOURCE%\blocktim.c src\Common-Demo-Source
43 copy %COMMON_SOURCE%\semtest.c src\Common-Demo-Source
44 copy %COMMON_SOURCE%\PollQ.c src\Common-Demo-Source
45 copy %COMMON_SOURCE%\GenQTest.c src\Common-Demo-Source
46 copy %COMMON_SOURCE%\recmutex.c src\Common-Demo-Source
47 copy %COMMON_SOURCE%\countsem.c src\Common-Demo-Source
48 copy %COMMON_SOURCE%\integer.c src\Common-Demo-Source
50 REM Copy the common demo file headers.
51 copy %COMMON_INCLUDE%\*.h src\Common-Demo-Source\include