From a793fb992aeae281878cb3c479b07bc3f50ac4ca Mon Sep 17 00:00:00 2001 From: RichardBarry Date: Sun, 12 Jul 2009 16:49:14 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@816 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/CORTEX_LPC1768_GCC_RedSuite/.cproject | 2 +- .../CreateProjectDirectoryStructure.bat | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 Demo/CORTEX_LPC1768_GCC_RedSuite/CreateProjectDirectoryStructure.bat diff --git a/Demo/CORTEX_LPC1768_GCC_RedSuite/.cproject b/Demo/CORTEX_LPC1768_GCC_RedSuite/.cproject index e7d25d06b..848eebde4 100644 --- a/Demo/CORTEX_LPC1768_GCC_RedSuite/.cproject +++ b/Demo/CORTEX_LPC1768_GCC_RedSuite/.cproject @@ -16,7 +16,7 @@ - + diff --git a/Demo/CORTEX_LPC1768_GCC_RedSuite/CreateProjectDirectoryStructure.bat b/Demo/CORTEX_LPC1768_GCC_RedSuite/CreateProjectDirectoryStructure.bat new file mode 100644 index 000000000..dd8697262 --- /dev/null +++ b/Demo/CORTEX_LPC1768_GCC_RedSuite/CreateProjectDirectoryStructure.bat @@ -0,0 +1,50 @@ +REM This file should be executed from the command line prior to the first +REM build. It will be necessary to refresh the Eclipse project once the +REM .bat file has been executed (normally just press F5 to refresh. + +REM Copies all the required files from their location within the standard +REM FreeRTOS directory structure to under the Eclipse project directory. +REM This permits the Eclipse project to be used in 'managed' mode and without +REM having to setup any linked resources. + +REM Have the files already been copied? +IF EXIST FreeRTOS Goto END + + REM Create the required directory structure. + MD src\FreeRTOS + MD src\FreeRTOS\include + MD src\FreeRTOS\portable\GCC\ARM_CM3 + MD src\FreeRTOS\portable\MemMang + MD "src\Common Demo Tasks" + MD "src\Common Demo Tasks\include" + + REM Copy the core kernel files. + copy ..\..\Source\tasks.c src\FreeRTOS + copy ..\..\Source\queue.c src\FreeRTOS + copy ..\..\Source\list.c src\FreeRTOS + + REM Copy the common header files + + copy ..\..\Source\include\*.* src\FreeRTOS\include + + REM Copy the portable layer files + copy ..\..\Source\portable\GCC\ARM_CM3\*.* src\FreeRTOS\portable\GCC\ARM_CM3 + + REM Copy the basic memory allocation files + copy ..\..\Source\portable\MemMang\*.* src\FreeRTOS\portable\MemMang + + REM Copy the files that define the common demo tasks. + copy ..\Common\minimal\BlockQ.c "src\Common Demo Tasks" + copy ..\Common\minimal\blocktim.c "src\Common Demo Tasks" + copy ..\Common\minimal\flash.c "src\Common Demo Tasks" + copy ..\Common\minimal\GenQTest.c "src\Common Demo Tasks" + copy ..\Common\minimal\integer.c "src\Common Demo Tasks" + copy ..\Common\minimal\PollQ.c "src\Common Demo Tasks" + copy ..\Common\minimal\QPeek.c "src\Common Demo Tasks" + copy ..\Common\minimal\recmutex.c "src\Common Demo Tasks" + copy ..\Common\minimal\semtest.c "src\Common Demo Tasks" + + REM Copy the common demo file headers. + copy ..\Common\include\*.* "src\Common Demo Tasks\include" + +: END \ No newline at end of file -- 2.39.5