Fixed issues with the logger and brought logger to same structure as the rest - now the logger is a independent object
Added testItems to HwValidationMenu for SWo git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@235 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
#include "Logger.h"
|
||||
|
||||
#include "platform.h"
|
||||
// -----------------------------------------------------------------------------
|
||||
// Constant and macro definitions
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -67,11 +68,11 @@ void OS_logTaskInfo(xTaskHandle taskHandle)
|
||||
char text[128];
|
||||
|
||||
snprintf(text, sizeof(text), "***** Task %s", pcTaskGetTaskName(taskHandle));
|
||||
LOGGER_INFO(text);
|
||||
LOGGER_INFO(mainLog, text);
|
||||
|
||||
highWaterMark = uxTaskGetStackHighWaterMark(taskHandle);
|
||||
snprintf(text, sizeof(text), "***** Stack high water mark : %lu long words", highWaterMark);
|
||||
LOGGER_INFO(text);
|
||||
LOGGER_INFO(mainLog, text);
|
||||
}
|
||||
|
||||
// Implementation for libc, needed for printf related functions.
|
||||
@@ -94,13 +95,13 @@ caddr_t _sbrk(int incr)
|
||||
// Stack overflow hook
|
||||
void vApplicationStackOverflowHook(xTaskHandle xTask, signed portCHAR* pcTaskName)
|
||||
{
|
||||
LOGGER_ERROR("STACK OVERFLOW IN TASK %s", pcTaskName);
|
||||
LOGGER_ERROR(mainLog, "STACK OVERFLOW IN TASK %s", pcTaskName);
|
||||
}
|
||||
|
||||
// Malloc failed hook
|
||||
void vApplicationMallocFailedHook(void)
|
||||
{
|
||||
// Logger_fatal(FATALCODE_MALLOCFAILED);
|
||||
|
||||
}
|
||||
|
||||
// Assert for StdPeriph library
|
||||
|
||||
Reference in New Issue
Block a user