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
14 SET CLI_SOURCE=..\..\..\FreeRTOS-Plus\Source\FreeRTOS-Plus-CLI
15 SET FAT_SOURCE=..\..\..\FreeRTOS-Plus\Source\FreeRTOS-Plus-FAT-SL
17 REM Have the files already been copied?
18 IF EXIST RTOSDemo\FreeRTOS-Source Goto END
20 REM Create the required directory structure.
21 MD RTOSDemo\FreeRTOS-Source
22 MD RTOSDemo\FreeRTOS-Source\include
23 MD RTOSDemo\FreeRTOS-Source\portable
24 MD RTOSDemo\FreeRTOS-Source\portable\GCC
25 MD RTOSDemo\FreeRTOS-Source\portable\GCC\ARM_CM3
26 MD RTOSDemo\FreeRTOS-Source\portable\MemMang
28 REM Copy the core kernel files into the project directory
29 copy %FREERTOS_SOURCE%\tasks.c RTOSDemo\FreeRTOS-Source
30 copy %FREERTOS_SOURCE%\queue.c RTOSDemo\FreeRTOS-Source
31 copy %FREERTOS_SOURCE%\list.c RTOSDemo\FreeRTOS-Source
32 copy %FREERTOS_SOURCE%\timers.c RTOSDemo\FreeRTOS-Source
34 REM Copy the common header files into the project directory
35 copy %FREERTOS_SOURCE%\include\*.* RTOSDemo\FreeRTOS-Source\include
37 REM Copy the portable layer files into the project directory
38 copy %FREERTOS_SOURCE%\portable\GCC\ARM_CM3\*.* RTOSDemo\FreeRTOS-Source\portable\GCC\ARM_CM3
40 REM Copy the memory allocation files into the project directory
41 copy %FREERTOS_SOURCE%\portable\MemMang\heap_4.c RTOSDemo\FreeRTOS-Source\portable\MemMang
43 REM Copy the files that define the common demo tasks.
44 copy %COMMON_SOURCE%\dynamic.c RTOSDemo\Full-Demo\Common-Demo-Source
45 copy %COMMON_SOURCE%\BlockQ.c RTOSDemo\Full-Demo\Common-Demo-Source
46 copy %COMMON_SOURCE%\flash_timer.c RTOSDemo\Full-Demo\Common-Demo-Source
47 copy %COMMON_SOURCE%\death.c RTOSDemo\Full-Demo\Common-Demo-Source
48 copy %COMMON_SOURCE%\blocktim.c RTOSDemo\Full-Demo\Common-Demo-Source
49 copy %COMMON_SOURCE%\semtest.c RTOSDemo\Full-Demo\Common-Demo-Source
50 copy %COMMON_SOURCE%\PollQ.c RTOSDemo\Full-Demo\Common-Demo-Source
51 copy %COMMON_SOURCE%\GenQTest.c RTOSDemo\Full-Demo\Common-Demo-Source
52 copy %COMMON_SOURCE%\recmutex.c RTOSDemo\Full-Demo\Common-Demo-Source
53 copy %COMMON_SOURCE%\countsem.c RTOSDemo\Full-Demo\Common-Demo-Source
54 copy %COMMON_SOURCE%\integer.c RTOSDemo\Full-Demo\Common-Demo-Source
56 REM Copy the common demo file headers.
57 copy %COMMON_INCLUDE%\*.h RTOSDemo\Full-Demo\Common-Demo-Source\include
59 REM Copy the FreeRTOS+CLI source.
60 copy %CLI_SOURCE%\*.* RTOSDemo\Full-Demo\FreeRTOS-Plus-CLI-Source
62 REM Copy the FreeRTOS+FAT SL source.
63 xcopy %FAT_SOURCE%\*.* RTOSDemo\Full-Demo\FreeRTOS-Plus-FAT-SL-Source /S