STM32 GPIO库中加了个IO取反的函数

[复制链接]
7903|1
 楼主| xuannin 发表于 2010-7-15 12:31 | 显示全部楼层 |阅读模式
void GPIO_PinReverse(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
{
  /* Check the parameters */
  assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
  assert_param(IS_GPIO_PIN(GPIO_Pin));
  
  GPIOx->ODR ^=  GPIO_Pin;
}
ranqingfa 发表于 2013-5-25 11:40 | 显示全部楼层
3.5的库里有吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则

34

主题

174

帖子

3

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