Lines Matching refs:GPIO_Pin
145 assert_param(IS_GPIO_PIN(GPIO_InitStruct->GPIO_Pin)); in GPIO_Init()
158 if (((uint32_t)GPIO_InitStruct->GPIO_Pin & ((uint32_t)0x00FF)) != 0x00) in GPIO_Init()
165 currentpin = (GPIO_InitStruct->GPIO_Pin) & pos; in GPIO_Init()
193 if (GPIO_InitStruct->GPIO_Pin > 0x00FF) in GPIO_Init()
200 currentpin = ((GPIO_InitStruct->GPIO_Pin) & pos); in GPIO_Init()
224 if(GPIO_InitStruct->GPIO_Pin>>16) //说明是GPIOE的16~23位 in GPIO_Init()
226 GPIO_InitStruct->GPIO_Pin = GPIO_InitStruct->GPIO_Pin>>16; in GPIO_Init()
232 currentpin = (GPIO_InitStruct->GPIO_Pin) & pos; in GPIO_Init()
269 GPIO_InitStruct->GPIO_Pin = GPIO_Pin_All; in GPIO_StructInit()
281 uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) in GPIO_ReadInputDataBit() argument
287 assert_param(IS_GET_GPIO_PIN(GPIO_Pin)); in GPIO_ReadInputDataBit()
289 if ((GPIOx->IDR & GPIO_Pin) != (uint32_t)Bit_RESET) in GPIO_ReadInputDataBit()
320 uint8_t GPIO_ReadOutputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) in GPIO_ReadOutputDataBit() argument
325 assert_param(IS_GET_GPIO_PIN(GPIO_Pin)); in GPIO_ReadOutputDataBit()
327 if ((GPIOx->ODR & GPIO_Pin) != (uint32_t)Bit_RESET) in GPIO_ReadOutputDataBit()
359 void GPIO_SetBits(GPIO_TypeDef* GPIOx, uint32_t GPIO_Pin) in GPIO_SetBits() argument
363 assert_param(IS_GPIO_PIN(GPIO_Pin)); in GPIO_SetBits()
364 if(GPIO_Pin>GPIO_Pin_15)GPIOE->BSRR_EXT=GPIO_Pin>>16; in GPIO_SetBits()
366 GPIOx->BSRR = GPIO_Pin; in GPIO_SetBits()
378 void GPIO_ResetBits(GPIO_TypeDef* GPIOx, uint32_t GPIO_Pin) in GPIO_ResetBits() argument
382 assert_param(IS_GPIO_PIN(GPIO_Pin)); in GPIO_ResetBits()
383 GPIOx->BRR = GPIO_Pin; in GPIO_ResetBits()
397 void GPIO_WriteBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, BitAction BitVal) in GPIO_WriteBit() argument
401 assert_param(IS_GET_GPIO_PIN(GPIO_Pin)); in GPIO_WriteBit()
406 GPIOx->BSRR = GPIO_Pin; in GPIO_WriteBit()
410 GPIOx->BRR = GPIO_Pin; in GPIO_WriteBit()
437 void GPIO_PinLockConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) in GPIO_PinLockConfig() argument
443 assert_param(IS_GPIO_PIN(GPIO_Pin)); in GPIO_PinLockConfig()
445 tmp |= GPIO_Pin; in GPIO_PinLockConfig()
449 GPIOx->LCKR = GPIO_Pin; in GPIO_PinLockConfig()
486 void GPIO_PinAFConfig(GPIO_TypeDef* GPIOx, uint32_t GPIO_Pin, uint8_t GPIO_AF) in GPIO_PinAFConfig() argument
496 if(GPIO_Pin>>16) //说明是GPIOE的16~23位 in GPIO_PinAFConfig()
498 temp = GPIO_Pin>>16; in GPIO_PinAFConfig()
509 if(GPIO_Pin&0XFF00) //说明是GPIOE的8~15位 in GPIO_PinAFConfig()
511 temp = GPIO_Pin>>8; in GPIO_PinAFConfig()
522 if(GPIO_Pin&0XFF) //说明是GPIOE的0~7位 in GPIO_PinAFConfig()