diff --git a/include/rtdebug.h b/include/rtdebug.h index abe7b3aa26e13e8d22fe2076f8b9894250bb798f..3cdc7625b44b894f26dffd7f7973c3cb0ff4017a 100644 --- a/include/rtdebug.h +++ b/include/rtdebug.h @@ -73,7 +73,10 @@ rt_kprintf("Function[%s] shall not used in ISR\n", __FUNCTION__);\ RT_ASSERT(0)}\ rt_hw_interrupt_enable(level);} while (0) +#else +#define RT_DEBUG_NOT_IN_INTERRUPT #endif + #else /* RT_DEBUG */ #define RT_ASSERT(EX)