1 REM This file should be executed from the command line prior to the first
2 REM build. It will be necessary to refresh the Eclipse project once the
3 REM .bat file has been executed (normally just press F5 to refresh).
5 REM Copies all the required files from their location within the standard
6 REM FreeRTOS directory structure to under the Eclipse project directory.
7 REM This permits the Eclipse project to be used in 'managed' mode and without
8 REM having to setup any linked resources.
11 SET FREERTOS_SOURCE=..\..\Source
12 SET COMMON_SOURCE=..\Common\minimal
13 SET COMMON_INCLUDE=..\Common\include
15 REM Have the files already been copied?
16 IF EXIST FreeRTOS_Source Goto END
18 REM Create the required directory structure.
20 MD FreeRTOS_Source\include
21 MD FreeRTOS_Source\portable\
22 MD FreeRTOS_Source\portable\Tasking
23 MD FreeRTOS_Source\portable\Tasking\ARM_CM4F
24 MD FreeRTOS_Source\portable\MemMang
26 MD Common_Demo_Source\include
28 REM Copy the core kernel files into the SDK projects directory
29 copy %FREERTOS_SOURCE%\tasks.c FreeRTOS_Source
30 copy %FREERTOS_SOURCE%\queue.c FreeRTOS_Source
31 copy %FREERTOS_SOURCE%\list.c FreeRTOS_Source
32 copy %FREERTOS_SOURCE%\timers.c FreeRTOS_Source
34 REM Copy the common header files into the SDK projects directory
35 copy %FREERTOS_SOURCE%\include\*.* FreeRTOS_Source\include
37 REM Copy the portable layer files into the projects directory
38 copy %FREERTOS_SOURCE%\portable\Tasking\ARM_CM4F\*.* FreeRTOS_Source\portable\Tasking\ARM_CM4F
40 REM Copy the basic memory allocation files into the SDK projects directory
41 copy %FREERTOS_SOURCE%\portable\MemMang\heap_2.c FreeRTOS_Source\portable\MemMang
43 REM Copy the files that define the common demo tasks.
44 copy %COMMON_SOURCE%\dynamic.c Common_Demo_Source
45 copy %COMMON_SOURCE%\blocktim.c Common_Demo_Source
46 copy %COMMON_SOURCE%\recmutex.c Common_Demo_Source
47 copy %COMMON_SOURCE%\sp_flop.c Common_Demo_Source
48 copy %COMMON_SOURCE%\QueueSet.c Common_Demo_Source
49 copy %COMMON_SOURCE%\QueueOverwrite.c Common_Demo_Source
50 copy %COMMON_SOURCE%\GenQTest.c Common_Demo_Source
52 REM Copy the common demo file headers.
53 copy %COMMON_INCLUDE%\*.h Common_Demo_Source\include