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:
@@ -137,7 +137,7 @@ static void printSystemInfoTask(void* parameters)
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
LOGGER_INFO("---------------------------------------");
|
||||
LOGGER_INFO(mainLog, "---------------------------------------");
|
||||
systeminfoCommandHandler();
|
||||
vTaskDelay(60000);
|
||||
}
|
||||
@@ -151,15 +151,14 @@ static ErrorStatus systeminfoCommandHandler(void)
|
||||
|
||||
freeMemory = xPortGetFreeHeapSize();
|
||||
snprintf(text, sizeof(text), "Free heap memory: %d bytes", freeMemory);
|
||||
LOGGER_INFO(text);
|
||||
LOGGER_INFO(mainLog, text);
|
||||
|
||||
errorStatus &= Logger_logModuleInfo();
|
||||
OS_logTaskInfo(display->taskHandle);
|
||||
vTaskDelay(100);
|
||||
OS_logTaskInfo(ledTaskHandle);
|
||||
vTaskDelay(100);
|
||||
OS_logTaskInfo(sysTaskHandle);
|
||||
// vTaskDelay(100);
|
||||
// OS_logTaskInfo(display->taskHandle);
|
||||
vTaskDelay(100);
|
||||
|
||||
return errorStatus;
|
||||
}
|
||||
@@ -170,7 +169,9 @@ static void initTask(void* parameters)
|
||||
|
||||
xTaskCreate(ledBlinkTask, (const char* const)"ledTask", 50, &ledTaskArguments, 0, &ledTaskHandle);
|
||||
|
||||
Logger_construct(&uart1->device);
|
||||
Logger_construct(mainLog, &uart1->device, 2, 512);
|
||||
|
||||
IODevice_write(&uart1->device, pcba->name, strlen(pcba->name));
|
||||
|
||||
NHD0420_construct(&nhd0420, &spiDisplay->device);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user