From e2d292afdb43cd7d9391128563384e1edd53c52e Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 2 Feb 2011 14:56:18 -0800 Subject: Moving the hooks into the os directory, where they belong. --- arch/Makefile | 2 +- arch/arm/lpc17xx/hooks.c | 18 ------------------ os/Makefile | 1 + os/src/hooks.c | 18 ++++++++++++++++++ 4 files changed, 20 insertions(+), 19 deletions(-) delete mode 100644 arch/arm/lpc17xx/hooks.c create mode 100644 os/src/hooks.c diff --git a/arch/Makefile b/arch/Makefile index a326af1..e8fcf20 100644 --- a/arch/Makefile +++ b/arch/Makefile @@ -12,7 +12,7 @@ TARGET_SRCS += arm/src/angel.s 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 arm/lpc17xx/deinit-all.c arm/lpc17xx/handlers.c arm/lpc17xx/hooks.c arm/lpc17xx/Drivers/source/debug_frmwrk.c arm/lpc17xx/mbed/BoardConsole.c arm/lpc17xx/mbed/BoardInit.c +TARGET_SRCS += arm/lpc17xx/startup.s arm/lpc17xx/deinit-all.c arm/lpc17xx/handlers.c arm/lpc17xx/Drivers/source/debug_frmwrk.c arm/lpc17xx/mbed/BoardConsole.c arm/lpc17xx/mbed/BoardInit.c endif endif diff --git a/arch/arm/lpc17xx/hooks.c b/arch/arm/lpc17xx/hooks.c deleted file mode 100644 index 1689db9..0000000 --- a/arch/arm/lpc17xx/hooks.c +++ /dev/null @@ -1,18 +0,0 @@ -#include "FreeRTOS.h" -#include "task.h" -#include "osdebug.h" - -void vConfigureTimerForRunTimeStats() { - DBGOUT("vConfigureTimerForRunTimeStats()\r\n"); -} - -void vApplicationTickHook() { -// DBGOUT("vApplicationTickHook()\r\n"); -} - -void vApplicationStackOverflowHook(xTaskHandle *pxTask, signed portCHAR *pcTaskName) { - DBGOUT("vApplicationStackOverflowHook(%p, %s)\r\n", pxTask, pcTaskName); -} - -void vApplicationIdleHook() { -} diff --git a/os/Makefile b/os/Makefile index d7d0419..37dbf56 100644 --- a/os/Makefile +++ b/os/Makefile @@ -9,6 +9,7 @@ include $(ROOTDIR)/arch/config.mk TARGET_SRCS = \ src/init.c \ +src/hooks.c \ \ src/filesystem.c \ src/fio.c \ diff --git a/os/src/hooks.c b/os/src/hooks.c new file mode 100644 index 0000000..2e18577 --- /dev/null +++ b/os/src/hooks.c @@ -0,0 +1,18 @@ +#include +#include +#include "osdebug.h" + +void vConfigureTimerForRunTimeStats() { + DBGOUT("vConfigureTimerForRunTimeStats()\r\n"); +} + +void vApplicationTickHook() { +// DBGOUT("vApplicationTickHook()\r\n"); +} + +void vApplicationStackOverflowHook(xTaskHandle *pxTask, signed portCHAR *pcTaskName) { + DBGOUT("vApplicationStackOverflowHook(%p, %s)\r\n", pxTask, pcTaskName); +} + +void vApplicationIdleHook() { +} -- cgit v1.2.3