2020-03-09 15:10:16 +08:00
|
|
|
/*
|
2021-03-14 15:15:52 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2020-03-09 15:10:16 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
2022-03-25 22:54:51 +08:00
|
|
|
* 2022-03-21 shelton first version
|
2020-03-09 15:10:16 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NOTE: DO NOT include this file on the header file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LOG_TAG
|
2022-03-25 22:54:51 +08:00
|
|
|
#define DBG_TAG "drv"
|
2020-03-09 15:10:16 +08:00
|
|
|
#else
|
2022-03-25 22:54:51 +08:00
|
|
|
#define DBG_TAG LOG_TAG
|
2020-03-09 15:10:16 +08:00
|
|
|
#endif /* LOG_TAG */
|
|
|
|
|
|
|
|
#ifdef DRV_DEBUG
|
2022-03-25 22:54:51 +08:00
|
|
|
#define DBG_LVL DBG_LOG
|
2020-03-09 15:10:16 +08:00
|
|
|
#else
|
2022-03-25 22:54:51 +08:00
|
|
|
#define DBG_LVL DBG_INFO
|
2020-03-09 15:10:16 +08:00
|
|
|
#endif /* DRV_DEBUG */
|
|
|
|
|
|
|
|
#include <rtdbg.h>
|