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
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
11 SET FREERTOS_SOURCE=..\..\Source
\r
12 SET COMMON_SOURCE=..\Common\minimal
\r
13 SET COMMON_INCLUDE=..\Common\include
\r
15 REM Have the files already been copied?
\r
16 IF EXIST src\FreeRTOS_Source Goto END
\r
18 REM Create the required directory structure.
\r
19 MD src\FreeRTOS_Source
\r
20 MD src\FreeRTOS_Source\include
\r
21 MD src\FreeRTOS_Source\portable
\r
22 MD src\FreeRTOS_Source\portable\GCC
\r
23 MD src\FreeRTOS_Source\portable\GCC\ARM_CM4F
\r
24 MD src\FreeRTOS_Source\portable\MemMang
\r
25 MD src\Common_Demo_Source
\r
26 MD src\Common_Demo_Source\include
\r
28 REM Copy the core kernel files into the SDK projects directory
\r
29 copy %FREERTOS_SOURCE%\tasks.c src\FreeRTOS_Source
\r
30 copy %FREERTOS_SOURCE%\queue.c src\FreeRTOS_Source
\r
31 copy %FREERTOS_SOURCE%\list.c src\FreeRTOS_Source
\r
32 copy %FREERTOS_SOURCE%\timers.c src\FreeRTOS_Source
\r
34 REM Copy the common header files into the SDK projects directory
\r
35 copy %FREERTOS_SOURCE%\include\*.* src\FreeRTOS_Source\include
\r
37 REM Copy the portable layer files into the projects directory
\r
38 copy %FREERTOS_SOURCE%\portable\GCC\ARM_CM4F\*.* src\FreeRTOS_Source\portable\GCC\ARM_CM4F
\r
40 REM Copy the basic memory allocation files into the SDK projects directory
\r
41 copy %FREERTOS_SOURCE%\portable\MemMang\heap_2.c src\FreeRTOS_Source\portable\MemMang
\r
43 REM Copy the files that define the common demo tasks.
\r
44 copy %COMMON_SOURCE%\dynamic.c src\Common_Demo_Source
\r
45 copy %COMMON_SOURCE%\BlockQ.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%\sp_flop.c src\Common_Demo_Source
\r
53 copy %COMMON_SOURCE%\countsem.c src\Common_Demo_Source
\r
54 copy %COMMON_SOURCE%\integer.c src\Common_Demo_Source
\r
56 REM Copy the common demo file headers.
\r
57 copy %COMMON_INCLUDE%\*.h src\Common_Demo_Source\include
\r