diff options
| author | Meco Man <[email protected]> | 2023-07-08 19:09:51 -0400 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-07-09 00:19:29 -0400 |
| commit | 237bbfd9688b4ea0329047a85165323b99961345 (patch) | |
| tree | 5e66a22c24e74c6df3482ad39dc2aa7a31008180 /bsp | |
| parent | 3660db39a1bf7310730490ea51b67e404a85c733 (diff) | |
[debug] remove RT_DEBUG_xxx
remove RT_DEBUG_THREAD RT_DEBUG_SCHEDULER RT_DEBUG_IPC RT_DEBUG_TIMER RT_DEBUG_IRQ RT_DEBUG_MEM RT_DEBUG_SLAB RT_DEBUG_MEMHEAP
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/efm32/rtconfig.h | 7 | ||||
| -rw-r--r-- | bsp/lpc43xx/M0/rtconfig.h | 4 | ||||
| -rw-r--r-- | bsp/sep6200/rtconfig.h | 11 | ||||
| -rw-r--r-- | bsp/simulator/drivers/module_win32.c | 8 |
4 files changed, 6 insertions, 24 deletions
diff --git a/bsp/efm32/rtconfig.h b/bsp/efm32/rtconfig.h index 408f695992..19dc011491 100644 --- a/bsp/efm32/rtconfig.h +++ b/bsp/efm32/rtconfig.h @@ -34,13 +34,6 @@ /* SECTION: RT_DEBUG */ #define RT_DEBUG #define RT_DEBUG_COLOR -//#define RT_DEBUG_MEM (1) -//#define RT_DEBUG_SCHEDULER (1) -//#define RT_DEBUG_IPC (1) -//#define THREAD_DEBUG -//#define IRQ_DEBUG -#define RT_USING_OVERFLOW_CHECK -//#define DFS_DEBUG #define RT_LWIP_DEBUG //#define RT_IRQHDL_DEBUG diff --git a/bsp/lpc43xx/M0/rtconfig.h b/bsp/lpc43xx/M0/rtconfig.h index 0c0db94c21..57a6300ec6 100644 --- a/bsp/lpc43xx/M0/rtconfig.h +++ b/bsp/lpc43xx/M0/rtconfig.h @@ -25,10 +25,6 @@ #define RT_DEBUG_COLOR // <bool name="RT_DEBUG_INIT" description="debug init enable" default=0 /> #define RT_DEBUG_INIT 0 -//#define RT_DEBUG_SCHEDULER 1 -// <bool name="RT_THREAD_DEBUG" description="Thread debug enable" default="false" /> -// #define RT_THREAD_DEBUG -// <bool name="RT_USING_OVERFLOW_CHECK" description="Thread stack over flow detect" default="true" /> #define RT_USING_OVERFLOW_CHECK // </section> diff --git a/bsp/sep6200/rtconfig.h b/bsp/sep6200/rtconfig.h index c687dc3cb4..ac5e520ca9 100644 --- a/bsp/sep6200/rtconfig.h +++ b/bsp/sep6200/rtconfig.h @@ -2,17 +2,6 @@ #ifndef __RTTHREAD_CFG_H__ #define __RTTHREAD_CFG_H__ -/* #define RT_DEBUG_IRQ 1 */ -/* #define RT_DEBUG_TIMER 1 */ - -/* #define RT_DEBUG_MEM 1 */ -/* #define RT_DEBUG_MEMHEAP 1 */ -/* #define RT_DEBUG_MODULE 1 */ -/* #define RT_DEBUG_SCHEDULER 1 */ -/* #define RT_DEBUG_SLAB 1 */ -/* #define RT_DEBUG_THREAD 1 */ -/* #define RT_DEBUG_IPC 1 */ - /* RT_NAME_MAX*/ #define RT_NAME_MAX 8 diff --git a/bsp/simulator/drivers/module_win32.c b/bsp/simulator/drivers/module_win32.c index 590aad39bd..183497f5c6 100644 --- a/bsp/simulator/drivers/module_win32.c +++ b/bsp/simulator/drivers/module_win32.c @@ -13,6 +13,11 @@ #include <rtm.h> #ifdef RT_USING_MODULE + +#define DBG_TAG "simulator.module.win32" +#define DBG_LVL DBG_INFO +#include <rtdbg.h> + void rt_module_init_object_container(struct rt_module *module) { RT_ASSERT(module != RT_NULL); @@ -315,8 +320,7 @@ rt_module_t rt_module_open(const char *path) (void(*)(void *))module->module_entry, RT_NULL, 2048, RT_THREAD_PRIORITY_MAX - 2, 10); - RT_DEBUG_LOG(RT_DEBUG_MODULE, ("thread entry 0x%x\n", - module->module_entry)); + LOG_D("thread entry %#x", module->module_entry); /* set module id */ module->module_thread->parent.module_id = (void *)module; |
