diff options
| author | linshire <[email protected]> | 2022-09-06 10:56:57 +0800 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2022-09-06 00:29:51 -0400 |
| commit | ae62b576325fcb972fb0152e3adb6622eefab8ca (patch) | |
| tree | 507a504c02d71f3df9d6a96ee9cbab4c3b53b526 | |
| parent | 45244037de217edfbe8afc21a50f4f0b563f7f9d (diff) | |
add drv_ulog.h so that the project can built successfully
| -rw-r--r-- | bsp/wch/risc-v/Libraries/ch32_drivers/drv_log.h | 27 |
1 files changed, 27 insertions, 0 deletions
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 <rtdbg.h> |
