Lines Matching refs:GPIOx

311 __STATIC_INLINE void LL_GPIO_SetPinMode(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Mode)  in LL_GPIO_SetPinMode()  argument
313 MODIFY_REG(GPIOx->MODER, (GPIO_MODER_MODE0 << (POSITION_VAL(Pin) * GPIO_MODER_MODE1_Pos)), in LL_GPIO_SetPinMode()
346 __STATIC_INLINE uint32_t LL_GPIO_GetPinMode(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinMode() argument
348 …return (uint32_t)(READ_BIT(GPIOx->MODER, (GPIO_MODER_MODE0 << (POSITION_VAL(Pin) * GPIO_MODER_MODE… in LL_GPIO_GetPinMode()
381 __STATIC_INLINE void LL_GPIO_SetPinOutputType(GPIO_TypeDef *GPIOx, uint32_t PinMask, uint32_t Outpu… in LL_GPIO_SetPinOutputType() argument
383 MODIFY_REG(GPIOx->OTYPER, PinMask, (PinMask * OutputType)); in LL_GPIO_SetPinOutputType()
415 __STATIC_INLINE uint32_t LL_GPIO_GetPinOutputType(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinOutputType() argument
417 return (uint32_t)(READ_BIT(GPIOx->OTYPER, Pin) >> POSITION_VAL(Pin)); in LL_GPIO_GetPinOutputType()
452 __STATIC_INLINE void LL_GPIO_SetPinSpeed(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Speed) in LL_GPIO_SetPinSpeed() argument
454 …MODIFY_REG(GPIOx->OSPEEDR, (GPIO_OSPEEDR_OSPEED0 << (POSITION_VAL(Pin) * GPIO_OSPEEDR_OSPEED1_Pos)… in LL_GPIO_SetPinSpeed()
489 __STATIC_INLINE uint32_t LL_GPIO_GetPinSpeed(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinSpeed() argument
491 …return (uint32_t)(READ_BIT(GPIOx->OSPEEDR, (GPIO_OSPEEDR_OSPEED0 << (POSITION_VAL(Pin) * GPIO_OSPE… in LL_GPIO_GetPinSpeed()
523 __STATIC_INLINE void LL_GPIO_SetPinPull(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Pull) in LL_GPIO_SetPinPull() argument
525 MODIFY_REG(GPIOx->PUPDR, (GPIO_PUPDR_PUPD0 << (POSITION_VAL(Pin) * GPIO_PUPDR_PUPD1_Pos)), in LL_GPIO_SetPinPull()
556 __STATIC_INLINE uint32_t LL_GPIO_GetPinPull(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPinPull() argument
558 …return (uint32_t)(READ_BIT(GPIOx->PUPDR, (GPIO_PUPDR_PUPD0 << (POSITION_VAL(Pin) * GPIO_PUPDR_PUPD… in LL_GPIO_GetPinPull()
596 __STATIC_INLINE void LL_GPIO_SetAFPin_0_7(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate) in LL_GPIO_SetAFPin_0_7() argument
598 MODIFY_REG(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * GPIO_AFRL_AFSEL1_Pos)), in LL_GPIO_SetAFPin_0_7()
633 __STATIC_INLINE uint32_t LL_GPIO_GetAFPin_0_7(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetAFPin_0_7() argument
635 …return (uint32_t)(READ_BIT(GPIOx->AFR[0], (GPIO_AFRL_AFSEL0 << (POSITION_VAL(Pin) * GPIO_AFRL_AFSE… in LL_GPIO_GetAFPin_0_7()
673 __STATIC_INLINE void LL_GPIO_SetAFPin_8_15(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate) in LL_GPIO_SetAFPin_8_15() argument
675 MODIFY_REG(GPIOx->AFR[1], (GPIO_AFRH_AFSEL8 << (POSITION_VAL(Pin >> 8U) * GPIO_AFRH_AFSEL9_Pos)), in LL_GPIO_SetAFPin_8_15()
711 __STATIC_INLINE uint32_t LL_GPIO_GetAFPin_8_15(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetAFPin_8_15() argument
713 …return (uint32_t)(READ_BIT(GPIOx->AFR[1], (GPIO_AFRH_AFSEL8 << (POSITION_VAL(Pin >> 8U) * GPIO_AFR… in LL_GPIO_GetAFPin_8_15()
747 __STATIC_INLINE void LL_GPIO_LockPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_LockPin() argument
750 WRITE_REG(GPIOx->LCKR, GPIO_LCKR_LCKK | PinMask); in LL_GPIO_LockPin()
751 WRITE_REG(GPIOx->LCKR, PinMask); in LL_GPIO_LockPin()
752 WRITE_REG(GPIOx->LCKR, GPIO_LCKR_LCKK | PinMask); in LL_GPIO_LockPin()
754 temp = READ_REG(GPIOx->LCKR); in LL_GPIO_LockPin()
782 __STATIC_INLINE uint32_t LL_GPIO_IsPinLocked(const GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsPinLocked() argument
784 return ((READ_BIT(GPIOx->LCKR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsPinLocked()
793 __STATIC_INLINE uint32_t LL_GPIO_IsAnyPinLocked(const GPIO_TypeDef *GPIOx) in LL_GPIO_IsAnyPinLocked() argument
795 return ((READ_BIT(GPIOx->LCKR, GPIO_LCKR_LCKK) == (GPIO_LCKR_LCKK)) ? 1UL : 0UL); in LL_GPIO_IsAnyPinLocked()
827 __STATIC_INLINE void LL_GPIO_LockResourcePin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_LockResourcePin() argument
829 MODIFY_REG(GPIOx->RCFGLOCKR, 0U, PinMask); in LL_GPIO_LockResourcePin()
856 __STATIC_INLINE uint32_t LL_GPIO_IsResourcePinLocked(const GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsResourcePinLocked() argument
858 return ((READ_BIT(GPIOx->RCFGLOCKR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsResourcePinLocked()
867 __STATIC_INLINE uint32_t LL_GPIO_IsAnyResourcePinLocked(const GPIO_TypeDef *GPIOx) in LL_GPIO_IsAnyResourcePinLocked() argument
869 return ((GPIOx->RCFGLOCKR == 0x00000000U) ? 0UL : 1UL); in LL_GPIO_IsAnyResourcePinLocked()
903 __STATIC_INLINE void LL_GPIO_SetDelayPin_0_7(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Delay) in LL_GPIO_SetDelayPin_0_7() argument
905 MODIFY_REG(GPIOx->DELAYR[0], GPIO_DELAYRL_DLY0 << (POSITION_VAL(Pin) * GPIO_DELAYRL_DLY1_Pos), in LL_GPIO_SetDelayPin_0_7()
937 __STATIC_INLINE uint32_t LL_GPIO_GetDelayPin_0_7(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetDelayPin_0_7() argument
939 …return (uint32_t)(READ_BIT(GPIOx->DELAYR[0], (GPIO_DELAYRL_DLY0 << (POSITION_VAL(Pin) * GPIO_DELAY… in LL_GPIO_GetDelayPin_0_7()
973 __STATIC_INLINE void LL_GPIO_SetDelayPin_8_15(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Delay) in LL_GPIO_SetDelayPin_8_15() argument
975 …MODIFY_REG(GPIOx->DELAYR[1], GPIO_DELAYRH_DLY8 << ((POSITION_VAL(Pin) & 0x07U) * GPIO_DELAYRH_DLY… in LL_GPIO_SetDelayPin_8_15()
1007 __STATIC_INLINE uint32_t LL_GPIO_GetDelayPin_8_15(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetDelayPin_8_15() argument
1009 return (uint32_t)(READ_BIT(GPIOx->DELAYR[1], in LL_GPIO_GetDelayPin_8_15()
1034 __STATIC_INLINE void LL_GPIO_SetPIOControlPin_0_7(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t CfgMa… in LL_GPIO_SetPIOControlPin_0_7() argument
1036 MODIFY_REG(GPIOx->ADVCFGR[0], GPIO_ADVCFGRL_0 << (POSITION_VAL(Pin) * GPIO_ADVCFGRL_1_Pos), in LL_GPIO_SetPIOControlPin_0_7()
1058 __STATIC_INLINE uint32_t LL_GPIO_GetPIOControlPin_0_7(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPIOControlPin_0_7() argument
1060 return (uint32_t)(READ_BIT(GPIOx->ADVCFGR[0], in LL_GPIO_GetPIOControlPin_0_7()
1085 __STATIC_INLINE void LL_GPIO_SetPIOControlPin_8_15(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t CfgM… in LL_GPIO_SetPIOControlPin_8_15() argument
1087 …MODIFY_REG(GPIOx->ADVCFGR[1], GPIO_ADVCFGRH_8 << ((POSITION_VAL(Pin) & 0x07U) * GPIO_ADVCFGRH_9_P… in LL_GPIO_SetPIOControlPin_8_15()
1109 __STATIC_INLINE uint32_t LL_GPIO_GetPIOControlPin_8_15(const GPIO_TypeDef *GPIOx, uint32_t Pin) in LL_GPIO_GetPIOControlPin_8_15() argument
1111 return (uint32_t)(READ_BIT(GPIOx->ADVCFGR[1], in LL_GPIO_GetPIOControlPin_8_15()
1131 __STATIC_INLINE uint32_t LL_GPIO_ReadInputPort(const GPIO_TypeDef *GPIOx) in LL_GPIO_ReadInputPort() argument
1133 return (uint32_t)(READ_REG(GPIOx->IDR)); in LL_GPIO_ReadInputPort()
1160 __STATIC_INLINE uint32_t LL_GPIO_IsInputPinSet(const GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsInputPinSet() argument
1162 return ((READ_BIT(GPIOx->IDR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsInputPinSet()
1172 __STATIC_INLINE void LL_GPIO_WriteOutputPort(GPIO_TypeDef *GPIOx, uint32_t PortValue) in LL_GPIO_WriteOutputPort() argument
1174 WRITE_REG(GPIOx->ODR, PortValue); in LL_GPIO_WriteOutputPort()
1183 __STATIC_INLINE uint32_t LL_GPIO_ReadOutputPort(const GPIO_TypeDef *GPIOx) in LL_GPIO_ReadOutputPort() argument
1185 return (uint32_t)(READ_REG(GPIOx->ODR)); in LL_GPIO_ReadOutputPort()
1212 __STATIC_INLINE uint32_t LL_GPIO_IsOutputPinSet(const GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsOutputPinSet() argument
1214 return ((READ_BIT(GPIOx->ODR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsOutputPinSet()
1241 __STATIC_INLINE void LL_GPIO_SetOutputPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_SetOutputPin() argument
1243 WRITE_REG(GPIOx->BSRR, PinMask); in LL_GPIO_SetOutputPin()
1270 __STATIC_INLINE void LL_GPIO_ResetOutputPin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_ResetOutputPin() argument
1272 WRITE_REG(GPIOx->BRR, PinMask); in LL_GPIO_ResetOutputPin()
1299 __STATIC_INLINE void LL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_TogglePin() argument
1301 uint32_t odr = READ_REG(GPIOx->ODR); in LL_GPIO_TogglePin()
1302 WRITE_REG(GPIOx->BSRR, ((odr & PinMask) << 16u) | (~odr & PinMask)); in LL_GPIO_TogglePin()
1332 __STATIC_INLINE void LL_GPIO_EnablePinSecure(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_EnablePinSecure() argument
1334 SET_BIT(GPIOx->SECCFGR, PinMask); in LL_GPIO_EnablePinSecure()
1362 __STATIC_INLINE void LL_GPIO_DisablePinSecure(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_DisablePinSecure() argument
1364 CLEAR_BIT(GPIOx->SECCFGR, PinMask); in LL_GPIO_DisablePinSecure()
1393 __STATIC_INLINE uint32_t LL_GPIO_IsEnabledPinSecure(const GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsEnabledPinSecure() argument
1395 return ((READ_BIT(GPIOx->SECCFGR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsEnabledPinSecure()
1426 __STATIC_INLINE void LL_GPIO_EnablePinPrivilege(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_EnablePinPrivilege() argument
1428 SET_BIT(GPIOx->PRIVCFGR, PinMask); in LL_GPIO_EnablePinPrivilege()
1456 __STATIC_INLINE void LL_GPIO_DisablePinPrivilege(GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_DisablePinPrivilege() argument
1458 CLEAR_BIT(GPIOx->PRIVCFGR, PinMask); in LL_GPIO_DisablePinPrivilege()
1487 __STATIC_INLINE uint32_t LL_GPIO_IsEnabledPinPrivilege(const GPIO_TypeDef *GPIOx, uint32_t PinMask) in LL_GPIO_IsEnabledPinPrivilege() argument
1489 return ((READ_BIT(GPIOx->PRIVCFGR, PinMask) == (PinMask)) ? 1UL : 0UL); in LL_GPIO_IsEnabledPinPrivilege()
1501 ErrorStatus LL_GPIO_DeInit(const GPIO_TypeDef *GPIOx);
1502 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, const LL_GPIO_InitTypeDef *GPIO_InitStruct);