Lines Matching refs:GPIOx

283 __STATIC_INLINE void LL_GPIO_SetPinMode(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Mode)  in LL_GPIO_SetPinMode()  argument
285 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODE0 << (POSITION_VAL(Pin) * GPIO_MODER_MODE1_Pos)), in LL_GPIO_SetPinMode()
318 __STATIC_INLINE uint32_t LL_GPIO_GetPinMode(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinMode() argument
320 …return (uint32_t)(READ_BIT(GPIOx->MODER, (GPIO_MODER_MODE0 << (POSITION_VAL(Pin) * GPIO_MODER_MODE… in LL_GPIO_GetPinMode()
353 __STATIC_INLINE void LL_GPIO_SetPinOutputType(GPIO_TypeDef *GPIOx, uint32_t PinMask, uint32_t Outpu… in LL_GPIO_SetPinOutputType() argument
355 MODIFY_REG(GPIOx->OTYPER, PinMask, (PinMask * OutputType)); in LL_GPIO_SetPinOutputType()
387 __STATIC_INLINE uint32_t LL_GPIO_GetPinOutputType(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinOutputType() argument
389 return (uint32_t)(READ_BIT(GPIOx->OTYPER, Pin) >> POSITION_VAL(Pin)); in LL_GPIO_GetPinOutputType()
424 __STATIC_INLINE void LL_GPIO_SetPinSpeed(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Speed) in LL_GPIO_SetPinSpeed() argument
426 …MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDR_OSPEED0 << (POSITION_VAL(Pin) * GPIO_OSPEEDR_OSPEED1_Pos)… in LL_GPIO_SetPinSpeed()
461 __STATIC_INLINE uint32_t LL_GPIO_GetPinSpeed(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinSpeed() argument
463 return (uint32_t)(READ_BIT(GPIOx->OSPEEDR, (GPIO_OSPEEDR_OSPEED0 << \ in LL_GPIO_GetPinSpeed()
496 __STATIC_INLINE void LL_GPIO_SetPinPull(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Pull) in LL_GPIO_SetPinPull() argument
498 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPD0 << (POSITION_VAL(Pin) * GPIO_PUPDR_PUPD1_Pos)), in LL_GPIO_SetPinPull()
529 __STATIC_INLINE uint32_t LL_GPIO_GetPinPull(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinPull() argument
531 …return (uint32_t)(READ_BIT(GPIOx->PUPDR, (GPIO_PUPDR_PUPD0 << (POSITION_VAL(Pin) * GPIO_PUPDR_PUPD… in LL_GPIO_GetPinPull()
569 __STATIC_INLINE void LL_GPIO_SetAFPin_0_7(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate) in LL_GPIO_SetAFPin_0_7() argument
571 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * GPIO_AFRL_AFSEL1_Pos)), in LL_GPIO_SetAFPin_0_7()
606 __STATIC_INLINE uint32_t LL_GPIO_GetAFPin_0_7(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetAFPin_0_7() argument
608 …return (uint32_t)(READ_BIT(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * GPIO_AFRL_AFSE… in LL_GPIO_GetAFPin_0_7()
646 __STATIC_INLINE void LL_GPIO_SetAFPin_8_15(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate) in LL_GPIO_SetAFPin_8_15() argument
648 MODIFY_REG(GPIOx->AFR[1], (GPIO_AFRH_AFSEL8 << (POSITION_VAL(Pin >> 8U) * GPIO_AFRH_AFSEL9_Pos)), in LL_GPIO_SetAFPin_8_15()
684 __STATIC_INLINE uint32_t LL_GPIO_GetAFPin_8_15(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetAFPin_8_15() argument
686 …return (uint32_t)(READ_BIT(GPIOx->AFR[1], (GPIO_AFRH_AFSEL8 << (POSITION_VAL(Pin >> 8U) * GPIO_AFR… in LL_GPIO_GetAFPin_8_15()
719 __STATIC_INLINE void LL_GPIO_LockPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_LockPin() argument
722 WRITE_REG(GPIOx->LCKR, GPIO_LCKR_LCKK | PinMask); in LL_GPIO_LockPin()
723 WRITE_REG(GPIOx->LCKR, PinMask); in LL_GPIO_LockPin()
724 WRITE_REG(GPIOx->LCKR, GPIO_LCKR_LCKK | PinMask); in LL_GPIO_LockPin()
726 temp = READ_REG(GPIOx->LCKR); in LL_GPIO_LockPin()
754 __STATIC_INLINE uint32_t LL_GPIO_IsPinLocked(const GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsPinLocked() argument
756 return ((READ_BIT(GPIOx->LCKR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsPinLocked()
765 __STATIC_INLINE uint32_t LL_GPIO_IsAnyPinLocked(const GPIO_TypeDef *GPIOx) in LL_GPIO_IsAnyPinLocked() argument
767 return ((READ_BIT(GPIOx->LCKR, GPIO_LCKR_LCKK) == (GPIO_LCKR_LCKK)) ? 1UL : 0UL); in LL_GPIO_IsAnyPinLocked()
784 __STATIC_INLINE uint32_t LL_GPIO_ReadInputPort(const GPIO_TypeDef *GPIOx) in LL_GPIO_ReadInputPort() argument
786 return (uint32_t)(READ_REG(GPIOx->IDR)); in LL_GPIO_ReadInputPort()
813 __STATIC_INLINE uint32_t LL_GPIO_IsInputPinSet(const GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsInputPinSet() argument
815 return ((READ_BIT(GPIOx->IDR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsInputPinSet()
825 __STATIC_INLINE void LL_GPIO_WriteOutputPort(GPIO_TypeDef *GPIOx, uint32_t PortValue) in LL_GPIO_WriteOutputPort() argument
827 WRITE_REG(GPIOx->ODR, PortValue); in LL_GPIO_WriteOutputPort()
836 __STATIC_INLINE uint32_t LL_GPIO_ReadOutputPort(const GPIO_TypeDef *GPIOx) in LL_GPIO_ReadOutputPort() argument
838 return (uint32_t)(READ_REG(GPIOx->ODR)); in LL_GPIO_ReadOutputPort()
865 __STATIC_INLINE uint32_t LL_GPIO_IsOutputPinSet(const GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsOutputPinSet() argument
867 return ((READ_BIT(GPIOx->ODR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsOutputPinSet()
894 __STATIC_INLINE void LL_GPIO_SetOutputPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_SetOutputPin() argument
896 WRITE_REG(GPIOx->BSRR, PinMask); in LL_GPIO_SetOutputPin()
923 __STATIC_INLINE void LL_GPIO_ResetOutputPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_ResetOutputPin() argument
925 WRITE_REG(GPIOx->BRR, PinMask); in LL_GPIO_ResetOutputPin()
952 __STATIC_INLINE void LL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_TogglePin() argument
954 uint32_t odr = READ_REG(GPIOx->ODR); in LL_GPIO_TogglePin()
955 WRITE_REG(GPIOx->BSRR, ((odr & PinMask) << 16u) | (~odr & PinMask)); in LL_GPIO_TogglePin()
984 __STATIC_INLINE void LL_GPIO_EnableHighSPeedLowVoltage(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_EnableHighSPeedLowVoltage() argument
986 SET_BIT(GPIOx->HSLVR, PinMask); in LL_GPIO_EnableHighSPeedLowVoltage()
1016 __STATIC_INLINE void LL_GPIO_DisableHighSPeedLowVoltage(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_DisableHighSPeedLowVoltage() argument
1018 CLEAR_BIT(GPIOx->HSLVR, PinMask); in LL_GPIO_DisableHighSPeedLowVoltage()
1047 __STATIC_INLINE uint32_t LL_GPIO_IsEnabledHighSPeedLowVoltage(const GPIO_TypeDef *GPIOx, uint32_t P… in LL_GPIO_IsEnabledHighSPeedLowVoltage() argument
1049 return ((READ_BIT(GPIOx->HSLVR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsEnabledHighSPeedLowVoltage()
1078 __STATIC_INLINE void LL_GPIO_EnablePinSecure(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_EnablePinSecure() argument
1080 SET_BIT(GPIOx->SECCFGR, PinMask); in LL_GPIO_EnablePinSecure()
1108 __STATIC_INLINE void LL_GPIO_DisablePinSecure(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_DisablePinSecure() argument
1110 CLEAR_BIT(GPIOx->SECCFGR, PinMask); in LL_GPIO_DisablePinSecure()
1139 __STATIC_INLINE uint32_t LL_GPIO_IsEnabledPinSecure(const GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsEnabledPinSecure() argument
1141 return ((READ_BIT(GPIOx->SECCFGR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsEnabledPinSecure()
1154 ErrorStatus LL_GPIO_DeInit(const GPIO_TypeDef *GPIOx);
1155 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct);