[debug] 整理debug宏并增加RT_DEBUGING_CONTEXT (#7805)

This commit is contained in:
Man, Jianting (Meco)
2023-07-22 10:36:42 +08:00
committed by GitHub
parent 52d3637fba
commit 244b903e5d
34 changed files with 92 additions and 102 deletions
+4 -4
View File
@@ -84,7 +84,7 @@ INIT_EXPORT(rti_end, "6.end");
*/
void rt_components_board_init(void)
{
#ifdef RT_DEBUG_INIT
#ifdef RT_DEBUGING_INIT
int result;
const struct rt_init_desc *desc;
for (desc = &__rt_init_desc_rti_board_start; desc < &__rt_init_desc_rti_board_end; desc ++)
@@ -100,7 +100,7 @@ void rt_components_board_init(void)
{
(*fn_ptr)();
}
#endif /* RT_DEBUG_INIT */
#endif /* RT_DEBUGING_INIT */
}
/**
@@ -108,7 +108,7 @@ void rt_components_board_init(void)
*/
void rt_components_init(void)
{
#ifdef RT_DEBUG_INIT
#ifdef RT_DEBUGING_INIT
int result;
const struct rt_init_desc *desc;
@@ -126,7 +126,7 @@ void rt_components_init(void)
{
(*fn_ptr)();
}
#endif /* RT_DEBUG_INIT */
#endif /* RT_DEBUGING_INIT */
}
#endif /* RT_USING_COMPONENTS_INIT */