你好我好大家好! 发表于 2015-8-13 09:33:05

st外设库中的这个函数起的什么作用????



#ifdef USE_FULL_ASSERT

/**
* @briefReports the name of the source file and the source line number
*   where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
* @retval None
*/
void assert_failed(uint8_t* file, uint32_t 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)
{
}
}
#endif

creep 发表于 2015-8-13 09:35:02

库函数参数检查,参考我之前的帖子。
STM32F303开发】+库函数参数检查

你好我好大家好! 发表于 2015-8-13 10:27:46

creep 发表于 2015-8-13 09:35
库函数参数检查,参考我之前的帖子。
STM32F303开发】+库函数参数检查

分析的棒极了,谢谢

stary666 发表于 2015-8-19 22:06:50

看看,,,,,,,,,,,
页: [1]
查看完整版本: st外设库中的这个函数起的什么作用????