rt-thread-official/bsp/stm32/libraries/HAL_Drivers/drv_log.h

31 lines
603 B
C
Raw Normal View History

/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
2019-01-22 10:00:45 +08:00
* 2018-11-15 SummerGift first version
*/
/*
* NOTE: DO NOT include this file on the header file.
*/
#define DBG_ENABLE
#define DBG_COLOR
#ifndef LOG_TAG
#define DBG_SECTION_NAME "drv"
#else
#define DBG_SECTION_NAME LOG_TAG
#endif /* LOG_TAG */
#ifdef DRV_DEBUG
#define DBG_LEVEL DBG_LOG
#else
#define DBG_LEVEL DBG_INFO
#endif /* DRV_DEBUG */
#include <rtdbg.h>