Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
Port Configuration
[GPIO Exported Functions]
Functions | |
__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. | |
__STATIC_INLINE uint32_t | LL_GPIO_GetPinMode (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return gpio mode for a dedicated pin on dedicated port. | |
__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 uint32_t | LL_GPIO_GetPinOutputType (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return gpio output type for several pins on 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 uint32_t | LL_GPIO_GetPinSpeed (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return 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 uint32_t | LL_GPIO_GetPinPull (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return gpio pull-up or pull-down for a dedicated pin on a 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 uint32_t | LL_GPIO_GetAFPin_0_7 (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return gpio alternate function of a dedicated pin from 0 to 7 for 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 uint32_t | LL_GPIO_GetAFPin_8_15 (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port. | |
__STATIC_INLINE void | LL_GPIO_EnablePinAnalogControl (GPIO_TypeDef *GPIOx, uint32_t PinMask) |
Connect analog switch to ADC input of several pins for a dedicated port. | |
__STATIC_INLINE void | LL_GPIO_DisablePinAnalogControl (GPIO_TypeDef *GPIOx, uint32_t PinMask) |
Disconnect analog switch to ADC input of several pins for a dedicated port. | |
__STATIC_INLINE void | LL_GPIO_LockPin (GPIO_TypeDef *GPIOx, uint32_t PinMask) |
Lock configuration of several pins for a dedicated port. | |
__STATIC_INLINE uint32_t | LL_GPIO_IsPinLocked (GPIO_TypeDef *GPIOx, uint32_t PinMask) |
Return 1 if all pins passed as parameter, of a dedicated port, are locked. | |
__STATIC_INLINE uint32_t | LL_GPIO_IsAnyPinLocked (GPIO_TypeDef *GPIOx) |
Return 1 if one of the pin of a dedicated port is locked. |
Function Documentation
__STATIC_INLINE void LL_GPIO_DisablePinAnalogControl | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | PinMask | ||
) |
Disconnect analog switch to ADC input of several pins for a dedicated port.
ASCR ASCy LL_GPIO_DisablePinAnalogControl
- Parameters:
-
GPIOx GPIO Port PinMask This parameter can be a combination of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
- LL_GPIO_PIN_ALL
- Return values:
-
None
Definition at line 758 of file stm32l4xx_ll_gpio.h.
__STATIC_INLINE void LL_GPIO_EnablePinAnalogControl | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | PinMask | ||
) |
Connect analog switch to ADC input of several pins for a dedicated port.
- Note:
- This bit must be set prior to the ADC conversion. Only the IO which connected to the ADC input are effective. Other IO must be kept reset value ASCR ASCy LL_GPIO_EnablePinAnalogControl
- Parameters:
-
GPIOx GPIO Port PinMask This parameter can be a combination of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
- LL_GPIO_PIN_ALL
- Return values:
-
None
Definition at line 729 of file stm32l4xx_ll_gpio.h.
__STATIC_INLINE uint32_t LL_GPIO_GetAFPin_0_7 | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | Pin | ||
) |
Return gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port.
AFRL AFSELy LL_GPIO_GetAFPin_0_7
- Parameters:
-
GPIOx GPIO Port Pin This parameter can be one of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- Return values:
-
Returned value can be one of the following values: - LL_GPIO_AF_0
- LL_GPIO_AF_1
- LL_GPIO_AF_2
- LL_GPIO_AF_3
- LL_GPIO_AF_4
- LL_GPIO_AF_5
- LL_GPIO_AF_6
- LL_GPIO_AF_7
- LL_GPIO_AF_8
- LL_GPIO_AF_9
- LL_GPIO_AF_10
- LL_GPIO_AF_11
- LL_GPIO_AF_12
- LL_GPIO_AF_13
- LL_GPIO_AF_14
- LL_GPIO_AF_15
Definition at line 617 of file stm32l4xx_ll_gpio.h.
__STATIC_INLINE uint32_t LL_GPIO_GetAFPin_8_15 | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | Pin | ||
) |
Return gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port.
- Note:
- Possible values are from AF0 to AF15 depending on target. AFRH AFSELy LL_GPIO_GetAFPin_8_15
- Parameters:
-
GPIOx GPIO Port Pin This parameter can be one of the following values: - LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
- Return values:
-
Returned value can be one of the following values: - LL_GPIO_AF_0
- LL_GPIO_AF_1
- LL_GPIO_AF_2
- LL_GPIO_AF_3
- LL_GPIO_AF_4
- LL_GPIO_AF_5
- LL_GPIO_AF_6
- LL_GPIO_AF_7
- LL_GPIO_AF_8
- LL_GPIO_AF_9
- LL_GPIO_AF_10
- LL_GPIO_AF_11
- LL_GPIO_AF_12
- LL_GPIO_AF_13
- LL_GPIO_AF_14
- LL_GPIO_AF_15
Definition at line 695 of file stm32l4xx_ll_gpio.h.
__STATIC_INLINE uint32_t LL_GPIO_GetPinMode | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | Pin | ||
) |
Return gpio mode for a dedicated pin on dedicated port.
- Note:
- I/O mode can be Input mode, General purpose output, Alternate function mode or Analog.
- Warning: only one pin can be passed as parameter. MODER MODEy LL_GPIO_GetPinMode
- Parameters:
-
GPIOx GPIO Port Pin This parameter can be one of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
- Return values:
-
Returned value can be one of the following values: - LL_GPIO_MODE_INPUT
- LL_GPIO_MODE_OUTPUT
- LL_GPIO_MODE_ALTERNATE
- LL_GPIO_MODE_ANALOG
Definition at line 331 of file stm32l4xx_ll_gpio.h.
__STATIC_INLINE uint32_t LL_GPIO_GetPinOutputType | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | Pin | ||
) |
Return gpio output type for several pins on dedicated port.
- Note:
- Output type as to be set when gpio pin is in output or alternate modes. Possible type are Push-pull or Open-drain.
- Warning: only one pin can be passed as parameter. OTYPER OTy LL_GPIO_GetPinOutputType
- Parameters:
-
GPIOx GPIO Port Pin This parameter can be one of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
- LL_GPIO_PIN_ALL
- Return values:
-
Returned value can be one of the following values: - LL_GPIO_OUTPUT_PUSHPULL
- LL_GPIO_OUTPUT_OPENDRAIN
Definition at line 400 of file stm32l4xx_ll_gpio.h.
__STATIC_INLINE uint32_t LL_GPIO_GetPinPull | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | Pin | ||
) |
Return gpio pull-up or pull-down for a dedicated pin on a dedicated port.
- Note:
- Warning: only one pin can be passed as parameter. PUPDR PUPDy LL_GPIO_GetPinPull
- Parameters:
-
GPIOx GPIO Port Pin This parameter can be one of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
- Return values:
-
Returned value can be one of the following values: - LL_GPIO_PULL_NO
- LL_GPIO_PULL_UP
- LL_GPIO_PULL_DOWN
Definition at line 540 of file stm32l4xx_ll_gpio.h.
__STATIC_INLINE uint32_t LL_GPIO_GetPinSpeed | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | Pin | ||
) |
Return gpio speed for a dedicated pin on dedicated port.
- Note:
- I/O speed can be Low, Medium, Fast or High speed.
- Warning: only one pin can be passed as parameter.
- Refer to datasheet for frequency specifications and the power supply and load conditions for each speed. OSPEEDR OSPEEDy LL_GPIO_GetPinSpeed
- Parameters:
-
GPIOx GPIO Port Pin This parameter can be one of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
- Return values:
-
Returned value can be one of the following values: - LL_GPIO_SPEED_FREQ_LOW
- LL_GPIO_SPEED_FREQ_MEDIUM
- LL_GPIO_SPEED_FREQ_HIGH
- LL_GPIO_SPEED_FREQ_VERY_HIGH
Definition at line 474 of file stm32l4xx_ll_gpio.h.
__STATIC_INLINE uint32_t LL_GPIO_IsAnyPinLocked | ( | GPIO_TypeDef * | GPIOx ) |
Return 1 if one of the pin of a dedicated port is locked.
else return 0. LCKR LCKK LL_GPIO_IsAnyPinLocked
- Parameters:
-
GPIOx GPIO Port
- Return values:
-
State of bit (1 or 0).
Definition at line 838 of file stm32l4xx_ll_gpio.h.
__STATIC_INLINE uint32_t LL_GPIO_IsPinLocked | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | PinMask | ||
) |
Return 1 if all pins passed as parameter, of a dedicated port, are locked.
else Return 0. LCKR LCKy LL_GPIO_IsPinLocked
- Parameters:
-
GPIOx GPIO Port PinMask This parameter can be a combination of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
- LL_GPIO_PIN_ALL
- Return values:
-
State of bit (1 or 0).
Definition at line 827 of file stm32l4xx_ll_gpio.h.
__STATIC_INLINE void LL_GPIO_LockPin | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | PinMask | ||
) |
Lock configuration of several pins for a dedicated port.
- Note:
- When the lock sequence has been applied on a port bit, the value of this port bit can no longer be modified until the next reset.
- Each lock bit freezes a specific configuration register (control and alternate function registers). LCKR LCKK LL_GPIO_LockPin
- Parameters:
-
GPIOx GPIO Port PinMask This parameter can be a combination of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
- LL_GPIO_PIN_ALL
- Return values:
-
None
Definition at line 793 of file stm32l4xx_ll_gpio.h.
__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.
- Note:
- Possible values are from AF0 to AF15 depending on target.
- Warning: only one pin can be passed as parameter. AFRL AFSELy LL_GPIO_SetAFPin_0_7
- Parameters:
-
GPIOx GPIO Port Pin This parameter can be one of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
Alternate This parameter can be one of the following values: - LL_GPIO_AF_0
- LL_GPIO_AF_1
- LL_GPIO_AF_2
- LL_GPIO_AF_3
- LL_GPIO_AF_4
- LL_GPIO_AF_5
- LL_GPIO_AF_6
- LL_GPIO_AF_7
- LL_GPIO_AF_8
- LL_GPIO_AF_9
- LL_GPIO_AF_10
- LL_GPIO_AF_11
- LL_GPIO_AF_12
- LL_GPIO_AF_13
- LL_GPIO_AF_14
- LL_GPIO_AF_15
- Return values:
-
None
Definition at line 580 of file stm32l4xx_ll_gpio.h.
__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.
- Note:
- Possible values are from AF0 to AF15 depending on target.
- Warning: only one pin can be passed as parameter. AFRH AFSELy LL_GPIO_SetAFPin_8_15
- Parameters:
-
GPIOx GPIO Port Pin This parameter can be one of the following values: - LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
Alternate This parameter can be one of the following values: - LL_GPIO_AF_0
- LL_GPIO_AF_1
- LL_GPIO_AF_2
- LL_GPIO_AF_3
- LL_GPIO_AF_4
- LL_GPIO_AF_5
- LL_GPIO_AF_6
- LL_GPIO_AF_7
- LL_GPIO_AF_8
- LL_GPIO_AF_9
- LL_GPIO_AF_10
- LL_GPIO_AF_11
- LL_GPIO_AF_12
- LL_GPIO_AF_13
- LL_GPIO_AF_14
- LL_GPIO_AF_15
- Return values:
-
None
Definition at line 657 of file stm32l4xx_ll_gpio.h.
__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.
- Note:
- I/O mode can be Input mode, General purpose output, Alternate function mode or Analog.
- Warning: only one pin can be passed as parameter. MODER MODEy LL_GPIO_SetPinMode
- Parameters:
-
GPIOx GPIO Port Pin This parameter can be one of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
Mode This parameter can be one of the following values: - LL_GPIO_MODE_INPUT
- LL_GPIO_MODE_OUTPUT
- LL_GPIO_MODE_ALTERNATE
- LL_GPIO_MODE_ANALOG
- Return values:
-
None
Definition at line 297 of file stm32l4xx_ll_gpio.h.
__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.
- Note:
- Output type as to be set when gpio pin is in output or alternate modes. Possible type are Push-pull or Open-drain. OTYPER OTy LL_GPIO_SetPinOutputType
- Parameters:
-
GPIOx GPIO Port PinMask This parameter can be a combination of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
- LL_GPIO_PIN_ALL
OutputType This parameter can be one of the following values: - LL_GPIO_OUTPUT_PUSHPULL
- LL_GPIO_OUTPUT_OPENDRAIN
- Return values:
-
None
Definition at line 366 of file stm32l4xx_ll_gpio.h.
__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.
- Note:
- Warning: only one pin can be passed as parameter. PUPDR PUPDy LL_GPIO_SetPinPull
- Parameters:
-
GPIOx GPIO Port Pin This parameter can be one of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
Pull This parameter can be one of the following values: - LL_GPIO_PULL_NO
- LL_GPIO_PULL_UP
- LL_GPIO_PULL_DOWN
- Return values:
-
None
Definition at line 508 of file stm32l4xx_ll_gpio.h.
__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.
- Note:
- I/O speed can be Low, Medium, Fast or High speed.
- Warning: only one pin can be passed as parameter.
- Refer to datasheet for frequency specifications and the power supply and load conditions for each speed. OSPEEDR OSPEEDy LL_GPIO_SetPinSpeed
- Parameters:
-
GPIOx GPIO Port Pin This parameter can be one of the following values: - LL_GPIO_PIN_0
- LL_GPIO_PIN_1
- LL_GPIO_PIN_2
- LL_GPIO_PIN_3
- LL_GPIO_PIN_4
- LL_GPIO_PIN_5
- LL_GPIO_PIN_6
- LL_GPIO_PIN_7
- LL_GPIO_PIN_8
- LL_GPIO_PIN_9
- LL_GPIO_PIN_10
- LL_GPIO_PIN_11
- LL_GPIO_PIN_12
- LL_GPIO_PIN_13
- LL_GPIO_PIN_14
- LL_GPIO_PIN_15
Speed This parameter can be one of the following values: - LL_GPIO_SPEED_FREQ_LOW
- LL_GPIO_SPEED_FREQ_MEDIUM
- LL_GPIO_SPEED_FREQ_HIGH
- LL_GPIO_SPEED_FREQ_VERY_HIGH
- Return values:
-
None
Definition at line 437 of file stm32l4xx_ll_gpio.h.
Generated on Tue Jul 12 2022 17:38:56 by
