Lines Matching refs:GPIOx

277 __STATIC_INLINE void LL_GPIO_SetPinMode(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Mode)  in LL_GPIO_SetPinMode()  argument
279 …MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODE0 << (POSITION_VAL(Pin) * 2U)), (Mode << (POSITION_VAL(Pi… in LL_GPIO_SetPinMode()
311 __STATIC_INLINE uint32_t LL_GPIO_GetPinMode(GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinMode() argument
313 return (uint32_t)(READ_BIT(GPIOx->MODER, in LL_GPIO_GetPinMode()
346 __STATIC_INLINE void LL_GPIO_SetPinOutputType(GPIO_TypeDef *GPIOx, uint32_t PinMask, uint32_t Outpu… in LL_GPIO_SetPinOutputType() argument
348 MODIFY_REG(GPIOx->OTYPER, PinMask, (PinMask * OutputType)); in LL_GPIO_SetPinOutputType()
380 __STATIC_INLINE uint32_t LL_GPIO_GetPinOutputType(GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinOutputType() argument
382 return (uint32_t)(READ_BIT(GPIOx->OTYPER, Pin) >> POSITION_VAL(Pin)); in LL_GPIO_GetPinOutputType()
417 __STATIC_INLINE void LL_GPIO_SetPinSpeed(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Speed) in LL_GPIO_SetPinSpeed() argument
419 MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDR_OSPEED0 << (POSITION_VAL(Pin) * 2U)), in LL_GPIO_SetPinSpeed()
454 __STATIC_INLINE uint32_t LL_GPIO_GetPinSpeed(GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinSpeed() argument
456 return (uint32_t)(READ_BIT(GPIOx->OSPEEDR, in LL_GPIO_GetPinSpeed()
488 __STATIC_INLINE void LL_GPIO_SetPinPull(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Pull) in LL_GPIO_SetPinPull() argument
490 …MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPD0 << (POSITION_VAL(Pin) * 2U)), (Pull << (POSITION_VAL(Pi… in LL_GPIO_SetPinPull()
520 __STATIC_INLINE uint32_t LL_GPIO_GetPinPull(GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinPull() argument
522 return (uint32_t)(READ_BIT(GPIOx->PUPDR, in LL_GPIO_GetPinPull()
560 __STATIC_INLINE void LL_GPIO_SetAFPin_0_7(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate) in LL_GPIO_SetAFPin_0_7() argument
562 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * 4U)), in LL_GPIO_SetAFPin_0_7()
597 __STATIC_INLINE uint32_t LL_GPIO_GetAFPin_0_7(GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetAFPin_0_7() argument
599 return (uint32_t)(READ_BIT(GPIOx->AFR[0], in LL_GPIO_GetAFPin_0_7()
637 __STATIC_INLINE void LL_GPIO_SetAFPin_8_15(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate) in LL_GPIO_SetAFPin_8_15() argument
639 MODIFY_REG(GPIOx->AFR[1], (GPIO_AFRH_AFSEL8 << (POSITION_VAL(Pin >> 8U) * 4U)), in LL_GPIO_SetAFPin_8_15()
675 __STATIC_INLINE uint32_t LL_GPIO_GetAFPin_8_15(GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetAFPin_8_15() argument
677 return (uint32_t)(READ_BIT(GPIOx->AFR[1], in LL_GPIO_GetAFPin_8_15()
710 __STATIC_INLINE void LL_GPIO_LockPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_LockPin() argument
713 WRITE_REG(GPIOx->LCKR, GPIO_LCKR_LCKK | PinMask); in LL_GPIO_LockPin()
714 WRITE_REG(GPIOx->LCKR, PinMask); in LL_GPIO_LockPin()
715 WRITE_REG(GPIOx->LCKR, GPIO_LCKR_LCKK | PinMask); in LL_GPIO_LockPin()
717 temp = READ_REG(GPIOx->LCKR); in LL_GPIO_LockPin()
745 __STATIC_INLINE uint32_t LL_GPIO_IsPinLocked(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsPinLocked() argument
747 return ((READ_BIT(GPIOx->LCKR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsPinLocked()
756 __STATIC_INLINE uint32_t LL_GPIO_IsAnyPinLocked(GPIO_TypeDef *GPIOx) in LL_GPIO_IsAnyPinLocked() argument
758 return ((READ_BIT(GPIOx->LCKR, GPIO_LCKR_LCKK) == (GPIO_LCKR_LCKK)) ? 1UL : 0UL); in LL_GPIO_IsAnyPinLocked()
775 __STATIC_INLINE uint32_t LL_GPIO_ReadInputPort(GPIO_TypeDef *GPIOx) in LL_GPIO_ReadInputPort() argument
777 return (uint32_t)(READ_REG(GPIOx->IDR)); in LL_GPIO_ReadInputPort()
804 __STATIC_INLINE uint32_t LL_GPIO_IsInputPinSet(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsInputPinSet() argument
806 return ((READ_BIT(GPIOx->IDR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsInputPinSet()
816 __STATIC_INLINE void LL_GPIO_WriteOutputPort(GPIO_TypeDef *GPIOx, uint32_t PortValue) in LL_GPIO_WriteOutputPort() argument
818 WRITE_REG(GPIOx->ODR, PortValue); in LL_GPIO_WriteOutputPort()
827 __STATIC_INLINE uint32_t LL_GPIO_ReadOutputPort(GPIO_TypeDef *GPIOx) in LL_GPIO_ReadOutputPort() argument
829 return (uint32_t)(READ_REG(GPIOx->ODR)); in LL_GPIO_ReadOutputPort()
856 __STATIC_INLINE uint32_t LL_GPIO_IsOutputPinSet(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsOutputPinSet() argument
858 return ((READ_BIT(GPIOx->ODR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsOutputPinSet()
885 __STATIC_INLINE void LL_GPIO_SetOutputPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_SetOutputPin() argument
887 WRITE_REG(GPIOx->BSRR, PinMask); in LL_GPIO_SetOutputPin()
914 __STATIC_INLINE void LL_GPIO_ResetOutputPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_ResetOutputPin() argument
916 WRITE_REG(GPIOx->BRR, PinMask); in LL_GPIO_ResetOutputPin()
943 __STATIC_INLINE void LL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_TogglePin() argument
945 uint32_t odr = READ_REG(GPIOx->ODR); in LL_GPIO_TogglePin()
946 WRITE_REG(GPIOx->BSRR, ((odr & PinMask) << 16u) | (~odr & PinMask)); in LL_GPIO_TogglePin()
975 __STATIC_INLINE void LL_GPIO_EnablePinSecure(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_EnablePinSecure() argument
977 SET_BIT(GPIOx->SECCFGR, PinMask); in LL_GPIO_EnablePinSecure()
1005 __STATIC_INLINE void LL_GPIO_DisablePinSecure(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_DisablePinSecure() argument
1007 CLEAR_BIT(GPIOx->SECCFGR, PinMask); in LL_GPIO_DisablePinSecure()
1036 __STATIC_INLINE uint32_t LL_GPIO_IsEnabledPinSecure(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsEnabledPinSecure() argument
1038 return ((READ_BIT(GPIOx->SECCFGR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsEnabledPinSecure()
1051 ErrorStatus LL_GPIO_DeInit(GPIO_TypeDef *GPIOx);
1052 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct);