标题: 基于IAR的STM32的工程模板文件下载 [打印本页]

作者: shenzz    时间: 2018-7-15 09:57
标题: 基于IAR的STM32的工程模板文件下载
基于IAR的STM32的工程文件的模板,用的固件库版本为3.5


单片机源码:
  1. /*
  2.   ******************************************************************************

  3.   * @version V3.5.0

  4.   ******************************************************************************
  5. */

  6. #include "stm32f10x.h"



  7. int main(void)
  8. {
  9.   SystemInit();
  10.   while (1)
  11.   {
  12.   }
  13. }










  14. #ifdef  USE_FULL_ASSERT

  15. /**
  16.   * @brief  Reports the name of the source file and the source line number
  17.   *         where the assert_param error has occurred.
  18.   * @param  file: pointer to the source file name
  19.   * @param  line: assert_param error line source number
  20.   * @retval None
  21.   */
  22. void assert_failed(uint8_t* file, uint32_t line)
  23. {
  24.   /* User can add his own implementation to report the file name and line number,
  25.      ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */

  26.   /* Infinite loop */
  27.   while (1)
  28.   {
  29.   }
  30. }

  31. #endif

  32. /**
  33.   * @}
  34.   */

  35. /**
  36.   * @}
  37.   */

  38. /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/

复制代码

所有资料51hei提供下载:
ProjIARV350.rar (584.28 KB, 下载次数: 104)







欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1