28 lines
849 B
C
28 lines
849 B
C
/*******************************************************************************
|
|
* @file debug_print.h
|
|
* @brief Debug output macros (Zephyr LOG backend)
|
|
******************************************************************************/
|
|
#ifndef DEBUG_PRINT_H
|
|
#define DEBUG_PRINT_H
|
|
|
|
#include <zephyr/logging/log.h>
|
|
|
|
/*
|
|
* - DBG_PRINTF: 상세 흐름 및 디버그용 로그
|
|
* - DBG_CORE: 부팅/상태 전환 등 핵심 로그
|
|
* - DBG_ERR: 실패/이상 상황 로그
|
|
*/
|
|
#include <zephyr/sys/printk.h>
|
|
|
|
#if defined(CONFIG_VESIS_DEBUG_PRINT)
|
|
#define DBG_PRINTF(...) printk(__VA_ARGS__)
|
|
#define DBG_CORE(...) printk(__VA_ARGS__)
|
|
#define DBG_ERR(...) printk(__VA_ARGS__)
|
|
#else
|
|
#define DBG_PRINTF(...) do { } while (0)
|
|
#define DBG_CORE(...) printk(__VA_ARGS__)
|
|
#define DBG_ERR(...) printk(__VA_ARGS__)
|
|
#endif
|
|
|
|
#endif /* DEBUG_PRINT_H */
|