你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

void assert_failed()

[复制链接]
jijune 提问时间:2010-11-30 19:18 /
在基本每个主函数里基本最后结尾均有一个void assert_failed()函数
void assert_failed(u8* file, u32 line)
{
  /* User can add his own implementation to report the file name and line number,
     ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
  /* Infinite loop */
  while (1)
  {
  }
}
请问一下这个函数的详细作用是什么呀?
还有main.h是什么作用?
Thanks
收藏 评论1 发布时间:2010-11-30 19:18

举报

1个回答
废鱼 回答时间:2010-11-30 21:08:47

RE:void assert_failed()

ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
输出错误信息。
main.h可能是有些定义或者其他的变量的声明。

所属标签

相似问题

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版