From e46ea682c1aa214ccb59c9871914993c9375e5c2 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 24 Jan 2011 08:54:54 +0100 Subject: Fixing a few templates, and making the various needed functions available. --- arch/Makefile | 3 ++- arch/arm/lpc17xx/hooks.c | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 arch/arm/lpc17xx/hooks.c (limited to 'arch') diff --git a/arch/Makefile b/arch/Makefile index 60f44bf..d5c09d1 100644 --- a/arch/Makefile +++ b/arch/Makefile @@ -4,12 +4,13 @@ all: $(TARGET_LIB) include $(ROOTDIR)/common.mk include config.mk +include $(ROOTDIR)/FreeRTOS/config.mk ifeq ($(CPU),arm) ifeq ($(CPU_FLAVOR),lpc1768) TARGET_SRCS += arm/lpc17xx/Core/CM3/DeviceSupport/NXP/LPC17xx/system_LPC17xx.c arm/lpc17xx/Core/CM3/CoreSupport/core_cm3.c TARGET_SRCS += $(addprefix arm/lpc17xx/Drivers/source/lpc17xx_, spi.c rit.c exti.c wdt.c uart.c dac.c rtc.c i2s.c pwm.c mcpwm.c pinsel.c nvic.c emac.c systick.c ssp.c can.c gpio.c libcfg_default.c i2c.c timer.c gpdma.c clkpwr.c qei.c adc.c) -TARGET_SRCS += arm/lpc17xx/startup.s +TARGET_SRCS += arm/lpc17xx/startup.s arm/lpc17xx/hooks.c endif endif diff --git a/arch/arm/lpc17xx/hooks.c b/arch/arm/lpc17xx/hooks.c new file mode 100644 index 0000000..8230d15 --- /dev/null +++ b/arch/arm/lpc17xx/hooks.c @@ -0,0 +1,7 @@ +#include "FreeRTOS.h" +#include "task.h" + +void vConfigureTimerForRunTimeStats() { } +void vApplicationTickHook() { } +void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName ) { } +void vApplicationIdleHook() { } -- cgit v1.2.3