Functions
Initialization/de-initialization functions
Peripheral Driver » HAL Driver » GPIO » Functions

Initialization and de-initialization functions. More...

## Functions
void | hal_gpio_init (gpio_regs_t *GPIOx, gpio_init_t *p_gpio_init)
| Initialize the GPIOx peripheral according to the specified parameters in the p_gpio_init. More...
void | hal_gpio_deinit (gpio_regs_t *GPIOx, uint32_t gpio_pin)
| De-initialize the GPIOx peripheral registers to their default reset values. More...

## Detailed Description

Initialization and de-initialization functions.

## Function Documentation

## ◆ hal_gpio_deinit()

void hal_gpio_deinit | ( | gpio_regs_t * | GPIOx,
|  | uint32_t | gpio_pin
| ) |  |

De-initialize the GPIOx peripheral registers to their default reset values.

Parameters

  [in] | GPIOx | Where x can be (0, 1) to select the GPIO peripheral port for GR533x device
  [in] | gpio_pin | Specifies the port bit to be written. This parameter can be a combination of the following values: GPIO_PIN_0 GPIO_PIN_1 GPIO_PIN_2 GPIO_PIN_3 GPIO_PIN_4 GPIO_PIN_5 GPIO_PIN_6 GPIO_PIN_7 GPIO_PIN_8 GPIO_PIN_9 GPIO_PIN_10 GPIO_PIN_11 GPIO_PIN_12 GPIO_PIN_13 GPIO_PIN_ALL

## ◆ hal_gpio_init()

void hal_gpio_init | ( | gpio_regs_t * | GPIOx,
|  | gpio_init_t * | p_gpio_init
| ) |  |

Initialize the GPIOx peripheral according to the specified parameters in the p_gpio_init.

Parameters

  [in] | GPIOx | Where x can be (0, 1) to select the GPIO peripheral port
  [in] | p_gpio_init | Pointer to a gpio_init_t structure that contains the configuration information for the specified GPIO peripheral port.