From ae62b576325fcb972fb0152e3adb6622eefab8ca Mon Sep 17 00:00:00 2001 From: linshire <1127384500@qq.com> Date: Tue, 6 Sep 2022 10:56:57 +0800 Subject: [PATCH] add drv_ulog.h so that the project can built successfully --- .../risc-v/Libraries/ch32_drivers/drv_log.h | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 bsp/wch/risc-v/Libraries/ch32_drivers/drv_log.h diff --git a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_log.h b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_log.h new file mode 100644 index 0000000000..e1b61708cc --- /dev/null +++ b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_log.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2018-11-15 SummerGift 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