debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART is not set
authorLukasz Czechowski <lukasz.czechowski@thaumatec.com>
Tue, 20 May 2025 11:36:42 +0000 (13:36 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 6 Jun 2025 09:12:20 +0000 (17:12 +0800)
commit0fb68337f2482f0397681b92d13bcfbf3741cd06
treecff78ec0199c1f70fab67e7c4518cdac3e587fbe
parent6773a46f1131fe95bcddb7472635e07a5fd249f8
debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART is not set

In case DEBUG UART is not used, define dummy macros replacing
the actual function implementations that will not be available.
This allows to compile code and avoid linker errors.
Redefine the DEBUG_UART_FUNCS macro if DEBUG UART is not available,
to avoid compilation errors.

Signed-off-by: Lukasz Czechowski <lukasz.czechowski@thaumatec.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
include/debug_uart.h