--- /dev/null
+REM This file should be executed from the command line prior to the first\r
+REM build. It will be necessary to refresh the Eclipse project once the\r
+REM .bat file has been executed (normally just press F5 to refresh).\r
+\r
+REM Copies all the required files from their location within the standard\r
+REM FreeRTOS directory structure to under the Eclipse project directory.\r
+REM This permits the Eclipse project to be used in 'managed' mode and without\r
+REM having to setup any linked resources.\r
+\r
+REM Have the files already been copied?\r
+IF EXIST RTOSDemo\FreeRTOS Goto END\r
+\r
+ REM Create the required directory structure.\r
+ MD RTOSDemo\FreeRTOS\r
+ MD RTOSDemo\FreeRTOS\include \r
+ MD RTOSDemo\FreeRTOS\portable\GCC\NiosII\r
+ MD RTOSDemo\FreeRTOS\portable\MemMang \r
+ MD "RTOSDemo\Common_Demo_Tasks"\r
+ MD "RTOSDemo\Common_Demo_Tasks\include"\r
+ \r
+ REM Copy the core kernel files.\r
+ copy ..\..\Source\tasks.c RTOSDemo\FreeRTOS\r
+ copy ..\..\Source\queue.c RTOSDemo\FreeRTOS\r
+ copy ..\..\Source\list.c RTOSDemo\FreeRTOS\r
+ \r
+ REM Copy the common header files\r
+\r
+ copy ..\..\Source\include\*.* RTOSDemo\FreeRTOS\include\r
+ \r
+ REM Copy the portable layer files\r
+ copy ..\..\Source\portable\GCC\NiosII\*.* RTOSDemo\FreeRTOS\portable\GCC\NiosII\r
+ \r
+ REM Copy the basic memory allocation files\r
+ copy ..\..\Source\portable\MemMang\*.* RTOSDemo\FreeRTOS\portable\MemMang\r
+\r
+ REM Copy the files that define the Common_Demo_Tasks.\r
+ copy ..\Common\minimal\BlockQ.c "RTOSDemo\Common_Demo_Tasks"\r
+ copy ..\Common\minimal\blocktim.c "RTOSDemo\Common_Demo_Tasks"\r
+ copy ..\Common\minimal\comtest.c "RTOSDemo\Common_Demo_Tasks" \r
+ copy ..\Common\minimal\countsem.c "RTOSDemo\Common_Demo_Tasks"\r
+ copy ..\Common\minimal\death.c "RTOSDemo\Common_Demo_Tasks" \r
+ copy ..\Common\minimal\dynamic.c "RTOSDemo\Common_Demo_Tasks" \r
+ copy ..\Common\minimal\flash.c "RTOSDemo\Common_Demo_Tasks"\r
+ copy ..\Common\minimal\GenQTest.c "RTOSDemo\Common_Demo_Tasks"\r
+ copy ..\Common\minimal\integer.c "RTOSDemo\Common_Demo_Tasks"\r
+ copy ..\Common\minimal\PollQ.c "RTOSDemo\Common_Demo_Tasks"\r
+ copy ..\Common\minimal\QPeek.c "RTOSDemo\Common_Demo_Tasks"\r
+ copy ..\Common\minimal\recmutex.c "RTOSDemo\Common_Demo_Tasks"\r
+ copy ..\Common\minimal\semtest.c "RTOSDemo\Common_Demo_Tasks"\r
+ \r
+ REM Copy the common demo file headers.\r
+ copy ..\Common\include\*.* "RTOSDemo\Common_Demo_Tasks\include"\r
+ \r
+: END\r