CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
components/log/ci_assert.h
浏览该文件的文档.
1 
10 #ifndef _CI_ASSERT_H_
11 #define _CI_ASSERT_H_
12 
13 #include "ci_log.h"
14 #include "ci_debug_config.h"
15 
16 #if CONFIG_DEBUG_EN
17 #define CI_ASSERT(x,msg) \
18  if( ( x ) == 0 ) \
19  { \
20  ci_logerr(LOG_ASSERT,"%s",msg); \
21  ci_logassert(LOG_ASSERT,"ASSERT: %d in %s\n",__LINE__,__FUNCTION__); \
22  while(1) asm volatile ("ebreak"); \
23  }
24 #else
25 #define CI_ASSERT(x,msg) do{}while(0)
26 #endif
27 
28 #endif /* _CI_ASSERT_H_ */
sdklog输出组件 这个文件用于定义sdk日志打印组件,log打印等级 参考Andriod Logcat 提供了多个打印函数, ...
用于debug的宏开关