Macros
GPIO Private Macros
Peripheral Driver » LL Driver » GPIO » Defines

## Macros
#define | LL_GPIO_GET_RESISTOR_POS(__GPIOx__) (((__GPIOx__) == GPIO0) ? 0 : 16)
| Get the starting position of the specified GPIO instance in related pull-up/pull-down register. More...
#define | LL_GPIO_GET_DPAD_POS(__GPIOx__) (((__GPIOx__) == GPIO0) ? 0 : 16)
| Get the starting position of the specified GPIO instance in related DPAD register. More...
#define | LL_GPIO_GET_REG_MUX_CTRL_0_7(__GPIOx__) (((__GPIOx__) == GPIO0) ? &(MCU_SUB->DPAD_MUX_CTL_00_07) : &(MCU_SUB->DPAD_MUX_CTL_16_23))
| Get mux control register address of specified GPIO instance. More...
#define | LL_GPIO_GET_REG_MUX_CTRL_8_15(__GPIOx__) (((__GPIOx__) == GPIO0) ? &(MCU_SUB->DPAD_MUX_CTL_08_15) : &(MCU_SUB->DPAD_MUX_CTL_24_31))
| Get mux control register address of specified GPIO instance. More...

## Detailed Description

## Macro Definition Documentation

## ◆ LL_GPIO_GET_DPAD_POS

#define LL_GPIO_GET_DPAD_POS | ( |  | __GPIOx__ | ) | (((__GPIOx__) == GPIO0) ? 0 : 16)

Get the starting position of the specified GPIO instance in related DPAD register.

Parameters

  __GPIOx__ | This parameter can be one of the following values: GPIO0 GPIO1

Return values

  none |

Definition at line 331 of file ll_gpio.h.

## ◆ LL_GPIO_GET_REG_MUX_CTRL_0_7

#define LL_GPIO_GET_REG_MUX_CTRL_0_7 | ( |  | __GPIOx__ | ) | (((__GPIOx__) == GPIO0) ? &(MCU_SUB->DPAD_MUX_CTL_00_07) : &(MCU_SUB->DPAD_MUX_CTL_16_23))

Get mux control register address of specified GPIO instance.

Parameters

  __GPIOx__ | This parameter can be one of the following values: GPIO0 GPIO1

Return values

  none |

Definition at line 339 of file ll_gpio.h.

## ◆ LL_GPIO_GET_REG_MUX_CTRL_8_15

#define LL_GPIO_GET_REG_MUX_CTRL_8_15 | ( |  | __GPIOx__ | ) | (((__GPIOx__) == GPIO0) ? &(MCU_SUB->DPAD_MUX_CTL_08_15) : &(MCU_SUB->DPAD_MUX_CTL_24_31))

Get mux control register address of specified GPIO instance.

Parameters

  __GPIOx__ | This parameter can be one of the following values: GPIO0 GPIO1

Return values

  none |

Definition at line 348 of file ll_gpio.h.

## ◆ LL_GPIO_GET_RESISTOR_POS

#define LL_GPIO_GET_RESISTOR_POS | ( |  | __GPIOx__ | ) | (((__GPIOx__) == GPIO0) ? 0 : 16)

Get the starting position of the specified GPIO instance in related pull-up/pull-down register.

Parameters

  __GPIOx__ | This parameter can be one of the following values: GPIO0 GPIO1

Return values

  none |

Definition at line 323 of file ll_gpio.h.