diff options
author | Tom Rini <trini@konsulko.com> | 2025-06-09 16:28:28 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-06-09 16:28:28 -0600 |
commit | 59d00e20fced23e6463aa09db889dd548baee677 (patch) | |
tree | 2502afc87e22058b3efd0a5c3d878e62ba52e96e /include/debug_uart.h | |
parent | 865130b7308453b9436942f01cc4481124b820eb (diff) | |
parent | d7c449c3d83a986d61e38d1762433c0607caf5c5 (diff) |
Merge tag 'v2025.07-rc4' into next
Prepare v2025.07-rc4
Diffstat (limited to 'include/debug_uart.h')
-rw-r--r-- | include/debug_uart.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/debug_uart.h b/include/debug_uart.h index 714b369e6fe..d5e397d5e0a 100644 --- a/include/debug_uart.h +++ b/include/debug_uart.h @@ -128,6 +128,8 @@ void printdec(unsigned int value); (1 << CONFIG_DEBUG_UART_SHIFT), \ CONFIG_DEBUG_UART_SHIFT) +#ifdef CONFIG_DEBUG_UART + /* * Now define some functions - this should be inserted into the serial driver */ @@ -197,4 +199,22 @@ void printdec(unsigned int value); _DEBUG_UART_ANNOUNCE \ } \ +#else + +#define DEBUG_UART_FUNCS + +#define _printch(ch) (void)(ch) +#define printhex1(digit) (void)(digit) +#define printhex(value, digits) do { (void)(value); (void)(digits); } while(0) + +#define printch(ch) (void)(ch) +#define printascii(str) (void)(str) +#define printhex2(value) (void)(value) +#define printhex4(value) (void)(value) +#define printhex8(value) (void)(value) +#define printdec(value) (void)(value) +#define debug_uart_init() ((void)0) + +#endif + #endif |