summaryrefslogtreecommitdiff
path: root/bsp/hc32/libraries/hc32_drivers/drv_log.h
blob: 9ba033856082a60da1c72b1b2e64e13e126a5e69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (C) 2022-2024, Xiaohua Semiconductor Co., Ltd.
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-04-28     CDT          first version
 */

/*
 * NOTE: DO NOT include this file on the header file.
 */

#ifndef LOG_TAG
    #define DBG_TAG                         "drv"
#else
    #define DBG_TAG                         LOG_TAG
#endif /* LOG_TAG */

#ifdef DRV_DEBUG
    #define DBG_LVL                         DBG_LOG
#else
    #define DBG_LVL                         DBG_INFO
#endif /* DRV_DEBUG */

#include <rtdbg.h>