查看: 1950|回复: 1

[其他] 老哥们帮忙解释下这代码吧

[复制链接]
  • TA的每日心情
    难过
    2018-12-30 10:40
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]初来乍到

    7

    主题

    18

    帖子

    0

    注册会员

    Rank: 2

    积分
    104
    最后登录
    2019-7-6
    发表于 2018-5-6 15:35:51 | 显示全部楼层 |阅读模式
    /**
      * @brief  The assert_param macro is used for function's parameters check.
      * @param  expr: If expr is false, it calls assert_failed function which reports
      *         the name of the source file and the source line number of the call
      *         that failed. If expr is true, it returns no value.
      * @retval None
      */

      #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
    /* Exported functions ------------------------------------------------------- */
      void assert_failed(uint8_t* file, uint32_t line);
    #else
      #define assert_param(expr) ((void)0)      
    #endif /* USE_FULL_ASSERT */
    #endif /* __STM32F10x_CONF_H */
    /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/

    我知道答案 目前已有1人回答
    打卡打卡!今天天气不好!
    回复

    使用道具 举报

  • TA的每日心情
    难过
    2018-12-30 10:40
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]初来乍到

    7

    主题

    18

    帖子

    0

    注册会员

    Rank: 2

    积分
    104
    最后登录
    2019-7-6
     楼主| 发表于 2018-5-6 15:44:14 | 显示全部楼层
    不用了,谢谢,找到了
    打卡打卡!今天天气不好!
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2025-7-21 03:31 , Processed in 0.086121 second(s), 22 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

    快速回复 返回顶部 返回列表