mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2026-07-02 17:45:42 +00:00
add WDT, new console, ...
This commit is contained in:
parent
e851661fa4
commit
de57c04fb4
21 changed files with 3158 additions and 2639 deletions
|
|
@ -89,6 +89,32 @@ prvDiagSPrintf(
|
|||
IN const char *fmt, ...
|
||||
);
|
||||
|
||||
#if CONFIG_DEBUG_LOG > 3
|
||||
#define debug_printf(fmt, ...) rtl_printf(fmt, ##__VA_ARGS__)
|
||||
#define info_printf(fmt, ...) rtl_printf(fmt, ##__VA_ARGS__)
|
||||
#define warning_printf(fmt, ...) rtl_printf(fmt, ##__VA_ARGS__)
|
||||
#define error_printf(fmt, ...) rtl_printf(fmt, ##__VA_ARGS__)
|
||||
#elif CONFIG_DEBUG_LOG > 2
|
||||
#define debug_printf(fmt, ...)
|
||||
#define info_printf(fmt, ...) rtl_printf(fmt, ##__VA_ARGS__)
|
||||
#define warning_printf(fmt, ...) rtl_printf(fmt, ##__VA_ARGS__)
|
||||
#define error_printf(fmt, ...) rtl_printf(fmt, ##__VA_ARGS__)
|
||||
#elif CONFIG_DEBUG_LOG > 1
|
||||
#define debug_printf(fmt, ...)
|
||||
#define info_printf(fmt, ...)
|
||||
#define warning_printf(fmt, ...) rtl_printf(fmt, ##__VA_ARGS__)
|
||||
#define error_printf(fmt, ...) rtl_printf(fmt, ##__VA_ARGS__)
|
||||
#elif CONFIG_DEBUG_LOG > 0
|
||||
#define debug_printf(fmt, ...)
|
||||
#define info_printf(fmt, ...)
|
||||
#define warning_printf(fmt, ...)
|
||||
#define error_printf(fmt, ...) rtl_printf(fmt, ##__VA_ARGS__)
|
||||
#else
|
||||
#define debug_printf(fmt, ...)
|
||||
#define info_printf(fmt, ...)
|
||||
#define warning_printf(fmt, ...)
|
||||
#define error_printf(fmt, ...)
|
||||
#endif
|
||||
|
||||
#define _DbgDump DiagPrintf
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue