void assert_failed()
在基本每个主函数里基本最后结尾均有一个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
RE:void assert_failed()
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */输出错误信息。
main.h可能是有些定义或者其他的变量的声明。
页:
[1]