2021-09-09 20:31:17 +08:00
|
|
|
/*
|
2023-02-11 08:14:33 +08:00
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
2021-09-09 20:31:17 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2020-01-09 shelton first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NOTE: DO NOT include this file on the header file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LOG_TAG
|
2021-11-02 17:09:53 +08:00
|
|
|
#define DBG_TAG "drv"
|
2021-09-09 20:31:17 +08:00
|
|
|
#else
|
2021-11-02 17:09:53 +08:00
|
|
|
#define DBG_TAG LOG_TAG
|
2021-09-09 20:31:17 +08:00
|
|
|
#endif /* LOG_TAG */
|
|
|
|
|
|
|
|
#ifdef DRV_DEBUG
|
2021-11-02 17:09:53 +08:00
|
|
|
#define DBG_LVL DBG_LOG
|
2021-09-09 20:31:17 +08:00
|
|
|
#else
|
2021-11-02 17:09:53 +08:00
|
|
|
#define DBG_LVL DBG_INFO
|
2021-09-09 20:31:17 +08:00
|
|
|
#endif /* DRV_DEBUG */
|
|
|
|
|
|
|
|
#include <rtdbg.h>
|