This module provides functions to configure and control debug level, logging and assertion.
This is the template of Debug User Configuration in userDef.h:
To use the logging function in the code, refer to Debug API Functions.
The following shows how to enable and use the logging macros. For the full API reference, see Debug API Functions.
Step 1 — Configure debug settings in userDef.h
Step 2 — Use logging macros in main.c
With the configuration above, all log levels will print to the console.
Topics | |
| ANSI Colors | |
| ANSI escape codes for colored terminal output. | |
| Debug API Functions | |
| Logging macros and runtime assertion. | |
| Debug Levels | |
| Minimum log severity filter. | |
| Debug Modules | |
| Bitmasks to enable logging per peripheral or subsystem. | |