Initialization/de-initialization 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]GPIOxWhere x can be (0, 1) to select the GPIO peripheral port for GR55xx device
[in]gpio_pinSpecifies 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]GPIOxWhere x can be (0, 1) to select the GPIO peripheral port
[in]p_gpio_initPointer to a gpio_init_t structure that contains the configuration information for the specified GPIO peripheral port.