RM := rm -rf\r
\r
+###############################################################################\r
+# List the directories that contain files to be built.\r
+###############################################################################\r
+\r
+# These two directories contain the FreeRTOS.org kernel source files.\r
FREERTOS_SOURCE_DIR=./../../../Source\r
PORT_SOURCE_DIR=./../../../Source/portable/GCC/ColdFire_V2\r
+\r
+# This directory contains the standard demo files that get included in every\r
+# FreeRTOS.org demo. They define tasks that demonstrate the API usage and \r
+# test the FreeRTOS.org port.\r
COMMON_DEMO_SOURCE_DIR=./../../Common/Minimal\r
+\r
+# The lwIP stack source files.\r
+LWIP_ROOT_DIR=./../../Common/ethernet/lwIP_130\r
+\r
+VPATH= $(FREERTOS_SOURCE_DIR) : \\r
+ $(PORT_SOURCE_DIR) : \\r
+ $(COMMON_DEMO_SOURCE_DIR) : \\r
+ $(FREERTOS_SOURCE_DIR)/portable/MemMang : \\r
+ . : \\r
+ ./ParTest : \\r
+ ./serial\r
+\r
+\r
+###############################################################################\r
+# Define a few constants to be used during the build.\r
+###############################################################################\r
+\r
OUTPUT_DIR=./bin\r
CPU=528x\r
-LINKER_SCRIPT=m5282evb-ram-hosted.ld\r
+LINKER_SCRIPT=m5282evb-dram_code-rambar_data-hosted.ld\r
OUTPUT_FILENAME=RTOSDemo.elf\r
CC=m68k-elf-gcc\r
AS=m68K-elf-as\r
-VPATH=$(FREERTOS_SOURCE_DIR) : $(PORT_SOURCE_DIR) : $(COMMON_DEMO_SOURCE_DIR) : $(FREERTOS_SOURCE_DIR)/portable/MemMang : . : ./ParTest : ./serial\r
-\r
-OBJS = $(OUTPUT_DIR)/portasm.o \\r
- $(OUTPUT_DIR)/main.o \\r
- $(OUTPUT_DIR)/serial.o \\r
- $(OUTPUT_DIR)/comtest.o \\r
- $(OUTPUT_DIR)/flash.o \\r
- $(OUTPUT_DIR)/ParTest.o \\r
- $(OUTPUT_DIR)/BlockQ.o \\r
- $(OUTPUT_DIR)/blocktim.o \\r
- $(OUTPUT_DIR)/death.o \\r
- $(OUTPUT_DIR)/integer.o \\r
- $(OUTPUT_DIR)/PollQ.o \\r
- $(OUTPUT_DIR)/semtest.o \\r
- $(OUTPUT_DIR)/GenQTest.o \\r
- $(OUTPUT_DIR)/QPeek.o \\r
- $(OUTPUT_DIR)/recmutex.o \\r
- $(OUTPUT_DIR)/port.o \\r
- $(OUTPUT_DIR)/list.o \\r
- $(OUTPUT_DIR)/tasks.o \\r
- $(OUTPUT_DIR)/queue.o \\r
- $(OUTPUT_DIR)/heap_2.o \\r
- $(OUTPUT_DIR)/IntQueueTimer.o \\r
- $(OUTPUT_DIR)/IntQueue.o \\r
- $(OUTPUT_DIR)/FreeRTOS_Tick_Setup.o\r
+\r
+\r
+###############################################################################\r
+# List the files to include in the build. These files will be located from the\r
+# VPATH defined above.\r
+###############################################################################\r
+\r
+# The FreeRTOS.org source files.\r
+FreeRTOS_OBJS= $(OUTPUT_DIR)/portasm.o \\r
+ $(OUTPUT_DIR)/port.o \\r
+ $(OUTPUT_DIR)/list.o \\r
+ $(OUTPUT_DIR)/tasks.o \\r
+ $(OUTPUT_DIR)/queue.o \\r
+ $(OUTPUT_DIR)/heap_2.o\r
+\r
+# The demo app source files.\r
+Demo_OBJS= $(OUTPUT_DIR)/main.o \\r
+ $(OUTPUT_DIR)/serial.o \\r
+ $(OUTPUT_DIR)/comtest.o \\r
+ $(OUTPUT_DIR)/flash.o \\r
+ $(OUTPUT_DIR)/ParTest.o \\r
+ $(OUTPUT_DIR)/BlockQ.o \\r
+ $(OUTPUT_DIR)/death.o \\r
+ $(OUTPUT_DIR)/integer.o \\r
+ $(OUTPUT_DIR)/PollQ.o \\r
+ $(OUTPUT_DIR)/semtest.o \\r
+ $(OUTPUT_DIR)/GenQTest.o \\r
+ $(OUTPUT_DIR)/QPeek.o \\r
+ $(OUTPUT_DIR)/recmutex.o \\r
+ $(OUTPUT_DIR)/IntQueueTimer.o \\r
+ $(OUTPUT_DIR)/IntQueue.o \\r
+ $(OUTPUT_DIR)/FreeRTOS_Tick_Setup.o\r
+\r
+OBJS = $(FreeRTOS_OBJS) $(Demo_OBJS)\r
\r
C_DEPS = $(OBJS:.o=.d)\r
\r
+INCLUDE_PATHS= -I"$(FREERTOS_SOURCE_DIR)/include" \\r
+ -I"include" \\r
+ -I"$(COMMON_DEMO_SOURCE_DIR)/../include" \\r
+ -I"$(PORT_SOURCE_DIR)" \\r
+ -I./MCF5282 \\r
+ -I.\r
\r
-CFLAGS= -I"$(FREERTOS_SOURCE_DIR)/include" \\r
- -I"include" \\r
- -I"$(COMMON_DEMO_SOURCE_DIR)/../include" \\r
- -I"$(PORT_SOURCE_DIR)" \\r
- -I./MCF5282 \\r
- -I. \\r
+CFLAGS= $(INCLUDE_PATHS) \\r
-D COLDFIRE_V2_GCC \\r
-O0 \\r
-fno-strict-aliasing \\r
-MT"$(@:%.o=%.d)"\r
\r
ASFLAGS= -m528x \\r
+ -g3 \\r
--register-prefix-optional \\r
--bitwise-or\r
\r
#include "BlockQ.h"\r
#include "death.h"\r
#include "integer.h"\r
-#include "blocktim.h"\r
#include "flash.h"\r
#include "partest.h"\r
#include "semtest.h"\r
#define mainCHECK_LED ( 3 )\r
\r
/* Contest constants - there is no free LED for the comtest. */\r
-#define mainCOM_TEST_BAUD_RATE ( ( unsigned portLONG ) 115200 )\r
-#define mainCOM_TEST_LED ( 5 )\r
+#define mainCOM_TEST_BAUD_RATE ( ( unsigned portLONG ) 19200 )\r
+#define mainCOM_TEST_LED ( 5 )\r
\r
/* Task priorities. */\r
#define mainCOM_TEST_PRIORITY ( tskIDLE_PRIORITY + 2 )\r
/* Start the standard demo tasks. */\r
vStartLEDFlashTasks( tskIDLE_PRIORITY );\r
vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
- vCreateBlockTimeTasks();\r
vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );\r
ulError |= 0x04UL;\r
}\r
\r
- if( xAreBlockTimeTestTasksStillRunning() != pdTRUE )\r
- {\r
- ulError |= 0x10UL;\r
- }\r
-\r
if( xAreSemaphoreTasksStillRunning() != pdTRUE )\r
{\r
ulError |= 0x20UL;\r