关于中断清除的问题

[复制链接]
 楼主| 河童 发表于 2020-4-26 13:54 | 显示全部楼层 |阅读模式
TI, RAM, AN, ST, TE
函数1:
/**
  * @brief  Clears the EXTI's line pending flags.
  * @param  EXTI_Line: specifies the EXTI lines flags to clear.
  *   This parameter can be any combination of EXTI_Linex where x can be (0..19).
  * @retval None
  */
void EXTI_ClearFlag(uint32_t EXTI_Line)
{
  /* Check the parameters */
  assert_param(IS_EXTI_LINE(EXTI_Line));

  EXTI->PR = EXTI_Line;
}

函数2:
/**
  * @brief  Clears the EXTI's line pending bits.
  * @param  EXTI_Line: specifies the EXTI lines to clear.
  *   This parameter can be any combination of EXTI_Linex where x can be (0..19).
  * @retval None
  */
void EXTI_ClearITPendingBit(uint32_t EXTI_Line)
{
  /* Check the parameters */
  assert_param(IS_EXTI_LINE(EXTI_Line));

  EXTI->PR = EXTI_Line;
}

这两个函数,功能描述只有一字之差,但是代码实现完全一致,请问这两个函数区别在哪里?或者说什么情况下使用哪一个函数
您需要登录后才可以回帖 登录 | 注册

本版积分规则

452

主题

452

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部

452

主题

452

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部