eLooM for STM32 application
v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
|
Debug Log. More...
Go to the source code of this file.
Macros | |
#define | SYS_DBG_LEVEL_ALL 0x00U |
All debug message are sent to the debug channel. | |
#define | SYS_DBG_LEVEL_VERBOSE 0x01U |
A general message for system developers. | |
#define | SYS_DBG_LEVEL_LLA 0x02U |
A message for system developers generated by a Low Level API function. | |
#define | SYS_DBG_LEVEL_SL 0x03U |
A message for system developers generated by a Service Layer function. | |
#define | SYS_DBG_LEVEL_DEFAULT 0x04U |
A message generated by application code. | |
#define | SYS_DBG_LEVEL_WARNING 0x05U |
A message generated when a minor error occurs. The system is probably able to auto-recovers. | |
#define | SYS_DBG_LEVEL_SEVERE 0x06U |
A message generated when a critical error occurs. The system probably hangs. | |
#define | SYS_DBG_ON 0x80U |
Flag for SYS_DEBUGF control byte to enable the debug message for that module. | |
#define | SYS_DBG_OFF 0x00U |
Flag for SYS_DEBUGF control byte to disable the debug message for that module. | |
#define | SYS_DBG_HALT 0x08U |
Flag for SYS_DEBUGF control byte to halt after printing a debug message for that module. | |
Functions | |
int | SysDebugHardwareInit (void) |
int | SysDebugInit (void) |
void | SysDebugStartRunTimeStatsTimer (void) |
void | SysDebugLogFreeHeapSize (void) |
Debug Log.
This file implement a set of macro in order to provide a simple way to create a log when the application is compiled in DEBUG.
Copyright (c) 2016 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
#define SYS_DBG_LEVEL_ALL 0x00U |
All debug message are sent to the debug channel.
The lower three bits of the debug control byte specifies debug level according to the following convention:
int SysDebugHardwareInit | ( | void | ) |
Initialize the hardware of the debug communication port.
int SysDebugInit | ( | void | ) |
Initialize the debug support.
void SysDebugLogFreeHeapSize | ( | void | ) |
Display in the debug log the size of the available eLooM heap.
void SysDebugStartRunTimeStatsTimer | ( | void | ) |
Enable the IRQ for the timer used as timebase in order to compute the FreeRTOS statistics about the MCU usage on per task basis.