Initialization and de-initialization functions.
More...
|
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...
|
|
Initialization and de-initialization functions.
◆ 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 GR55xx device |
[in] | gpio_pin | Specifies the port bit to be written. This parameter can be a combiantion of the following values:
|
◆ 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. |