Initialize GPIO registers according to the specified parameters in GPIO_InitStruct.
204 pinpos = POSITION_VAL(GPIO_InitStruct->
Pin);
207 while (((GPIO_InitStruct->
Pin) >> pinpos) != 0x00u)
210 currentpin = (GPIO_InitStruct->
Pin) & (0x00000001uL << pinpos);
212 if (currentpin != 0x00u)
217 if ((GPIO_InitStruct->
Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->
Mode == LL_GPIO_MODE_ALTERNATE))
229 if (GPIO_InitStruct->
Mode == LL_GPIO_MODE_ALTERNATE)
235 if (currentpin < LL_GPIO_PIN_8)
248 if ((GPIO_InitStruct->
Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->
Mode == LL_GPIO_MODE_ALTERNATE))
__STATIC_INLINE void LL_GPIO_SetPinOutputType(GPIO_TypeDef *GPIOx, uint32_t PinMask, uint32_t OutputType)
Configure gpio output type for several pins on dedicated port.
__STATIC_INLINE void LL_GPIO_SetAFPin_0_7(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate)
Configure gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port.
__STATIC_INLINE void LL_GPIO_SetPinSpeed(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Speed)
Configure gpio speed for a dedicated pin on dedicated port.
__STATIC_INLINE void LL_GPIO_SetPinPull(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Pull)
Configure gpio pull-up or pull-down for a dedicated pin on a dedicated port.
__STATIC_INLINE void LL_GPIO_SetAFPin_8_15(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate)
Configure gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port...
__STATIC_INLINE void LL_GPIO_SetPinMode(GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Mode)
Configure gpio mode for a dedicated pin on dedicated port.
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))