From 30306a42972f6a414e8b23e7942fd77f74af80db Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 27 Jan 2011 00:04:27 +0100 Subject: Adding the osdebug mechanism into arch and FreeRTOS, essentially closing the circle of dependancy between all 3 libraries. Also, turning the debugging on by default. --- arch/arm/lpc17xx/hooks.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'arch/arm') diff --git a/arch/arm/lpc17xx/hooks.c b/arch/arm/lpc17xx/hooks.c index 8230d15..5aeb335 100644 --- a/arch/arm/lpc17xx/hooks.c +++ b/arch/arm/lpc17xx/hooks.c @@ -1,7 +1,19 @@ #include "FreeRTOS.h" #include "task.h" +#include "osdebug.h" -void vConfigureTimerForRunTimeStats() { } -void vApplicationTickHook() { } -void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName ) { } -void vApplicationIdleHook() { } +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() { + DBGOUT("vApplicationIdleHook()\r\n"); +} -- cgit v1.2.3