中级会员
 
- 积分
- 301
- 金钱
- 301
- 注册时间
- 2012-6-27
- 在线时间
- 71 小时
|
void EXTI_ClearITPendingBit(uint32_t EXTI_Line) 和 void EXTI_ClearFlag(uint32_t EXTI_Line)
在stm32f10x_exti.c里面这个两个函数功能是一模一样的,但是在IAR里只认EXTI_ClearFlag,用EXTI_ClearITPendingBit在编译是就报错(MDK两个都没问题)
ERROR[Pe223]: function "EXTI_ClearITpendingBit" declared implicitly
stm32f10x_exti.h
void EXTI_ClearFlag(uint32_t EXTI_Line);
void EXTI_ClearITPendingBit(uint32_t EXTI_Line);
stm32f10x_exti.c
/**
* @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-> R = EXTI_Line;
}
/**
* @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-> R = EXTI_Line;
} |
|