Port Configuration

Functions

__STATIC_INLINE void ll_aon_gpio_set_pin_mode (uint32_t pin_mask, uint32_t mode)
 Set several AON_GPIO pins to input/output mode. More...
 
__STATIC_INLINE uint32_t ll_aon_gpio_get_pin_mode (uint32_t pin)
 Return gpio mode for a AON_GPIO pin. More...
 
__STATIC_INLINE void ll_aon_gpio_set_pin_pull (uint32_t pin_mask, uint32_t pull)
 Configure gpio pull-up or pull-down for a dedicated AON_GPIO pin. More...
 
__STATIC_INLINE uint32_t ll_aon_gpio_get_pin_pull (uint32_t pin)
 Return gpio pull-up or pull-down for a dedicated AON_GPIO pin. More...
 
__STATIC_INLINE void ll_aon_gpio_set_pin_mux (uint32_t pin, uint32_t mux)
 Configure gpio pinmux number of a dedicated pin from 0 to 7 for a dedicated port. More...
 
__STATIC_INLINE uint32_t ll_aon_gpio_get_pin_mux (uint32_t pin)
 Return gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port. More...
 
__STATIC_INLINE void ll_aon_gpio4_enable_clk_output (uint32_t clk_sel)
 Enable clock output on AON_GPIO_PIN4. More...
 
__STATIC_INLINE void ll_aon_gpio4_disable_clk_output (void)
 Disable clock output on AON_GPIO_PIN4. More...
 
__STATIC_INLINE uint32_t ll_aon_gpio4_is_enabled_clk_output (void)
 Check if clock output on AON_GPIO_PIN4 is enabled or disabled. More...
 
__STATIC_INLINE void ll_aon_gpio_enable_xo_2mhz_output (void)
 Enable Xo_2MHz output on AON_GPIO_PIN5. More...
 
__STATIC_INLINE void ll_aon_gpio_disable_xo_2mhz_output (void)
 Disable Xo_2MHz output on AON_GPIO_PIN5. More...
 
SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_aon_gpio_is_enabled_xo_2mhz_output (void)
 Check if Xo_2MHz output on AON_GPIO_PIN5 is enabled or disabled. More...
 

Detailed Description

Function Documentation

◆ ll_aon_gpio4_disable_clk_output()

__STATIC_INLINE void ll_aon_gpio4_disable_clk_output ( void  )

Disable clock output on AON_GPIO_PIN4.

Register|BitsName --------|-------- AON_PAD_CLK | AON_PAD_CLK

Return values
None

Definition at line 506 of file gr55xx_ll_aon_gpio.h.

◆ ll_aon_gpio4_enable_clk_output()

__STATIC_INLINE void ll_aon_gpio4_enable_clk_output ( uint32_t  clk_sel)

Enable clock output on AON_GPIO_PIN4.

Register|BitsName --------|-------- AON_PAD_CLK | AON_PAD_CLK

Parameters
clk_selThis parameter can be the following values:
Return values
None

Definition at line 491 of file gr55xx_ll_aon_gpio.h.

◆ ll_aon_gpio4_is_enabled_clk_output()

__STATIC_INLINE uint32_t ll_aon_gpio4_is_enabled_clk_output ( void  )

Check if clock output on AON_GPIO_PIN4 is enabled or disabled.

Register|BitsName --------|-------- AON_PAD_CLK | AON_PAD_CLK

Return values
Stateof bit (1 or 0).

Definition at line 520 of file gr55xx_ll_aon_gpio.h.

◆ ll_aon_gpio_disable_xo_2mhz_output()

__STATIC_INLINE void ll_aon_gpio_disable_xo_2mhz_output ( void  )

Disable Xo_2MHz output on AON_GPIO_PIN5.

Register|BitsName --------|-------- PWR_RET01 | XO_2MHZ_ENA

Return values
None

Definition at line 548 of file gr55xx_ll_aon_gpio.h.

◆ ll_aon_gpio_enable_xo_2mhz_output()

__STATIC_INLINE void ll_aon_gpio_enable_xo_2mhz_output ( void  )

Enable Xo_2MHz output on AON_GPIO_PIN5.

Register|BitsName --------|-------- PWR_RET01 | XO_2MHZ_ENA

Return values
None

Definition at line 534 of file gr55xx_ll_aon_gpio.h.

◆ ll_aon_gpio_get_pin_mode()

__STATIC_INLINE uint32_t ll_aon_gpio_get_pin_mode ( uint32_t  pin)

Return gpio mode for a AON_GPIO pin.

Note
I/O mode can be Input mode. General purpose output.
Warning: only one pin can be passed as parameter.

Register|BitsName --------|-------- AON_PAD_CTL1 | AON_GPO_OE_N

Parameters
pinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 319 of file gr55xx_ll_aon_gpio.h.

References LL_AON_GPIO_MODE_INPUT, and LL_AON_GPIO_MODE_OUTPUT.

◆ ll_aon_gpio_get_pin_mux()

__STATIC_INLINE uint32_t ll_aon_gpio_get_pin_mux ( uint32_t  pin)

Return gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port.

Register|BitsName --------|-------- AON_PAD_MUX_CTRL | CTRL0_7 AON_PAD_CTL_0 | MCU_OVR

Parameters
pinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 464 of file gr55xx_ll_aon_gpio.h.

References LL_AON_GPIO_MUX_7.

◆ ll_aon_gpio_get_pin_pull()

__STATIC_INLINE uint32_t ll_aon_gpio_get_pin_pull ( uint32_t  pin)

Return gpio pull-up or pull-down for a dedicated AON_GPIO pin.

Note
Warning: only one pin can be passed as parameter.

Register|BitsName --------|-------- AON_PAD_CTL0 | GPO_RE_N AON_PAD_CTL0 | GPO_RTYPE

Parameters
pinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 383 of file gr55xx_ll_aon_gpio.h.

References LL_AON_GPIO_PULL_DOWN, LL_AON_GPIO_PULL_NO, and LL_AON_GPIO_PULL_UP.

◆ ll_aon_gpio_is_enabled_xo_2mhz_output()

SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_aon_gpio_is_enabled_xo_2mhz_output ( void  )

Check if Xo_2MHz output on AON_GPIO_PIN5 is enabled or disabled.

Register|BitsName --------|-------- PWR_RET01 | XO_2MHZ_ENA

Return values
None

Definition at line 562 of file gr55xx_ll_aon_gpio.h.

◆ ll_aon_gpio_set_pin_mode()

__STATIC_INLINE void ll_aon_gpio_set_pin_mode ( uint32_t  pin_mask,
uint32_t  mode 
)

Set several AON_GPIO pins to input/output mode.

Register|BitsName --------|-------- AON_PAD_CTL1 | AON_GPO_OE_N

Parameters
pin_maskThis parameter can be a combination of the following values:
modeThis parameter can be one of the following values:
Return values
None

Definition at line 291 of file gr55xx_ll_aon_gpio.h.

References LL_AON_GPIO_MODE_INPUT.

◆ ll_aon_gpio_set_pin_mux()

__STATIC_INLINE void ll_aon_gpio_set_pin_mux ( uint32_t  pin,
uint32_t  mux 
)

Configure gpio pinmux number 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.

Register|BitsName --------|-------- AON_PAD_MUX_CTRL | CTRL0_7 AON_PAD_CTL_0 | MCU_OVR

Parameters
pinThis parameter can be one of the following values:
muxThis parameter can be one of the following values:
Return values
None

Definition at line 422 of file gr55xx_ll_aon_gpio.h.

References LL_AON_GPIO_MUX_7.

◆ ll_aon_gpio_set_pin_pull()

__STATIC_INLINE void ll_aon_gpio_set_pin_pull ( uint32_t  pin_mask,
uint32_t  pull 
)

Configure gpio pull-up or pull-down for a dedicated AON_GPIO pin.

Note
Warning: only one pin can be passed as parameter.

Register|BitsName --------|-------- AON_PAD_CTL0 | GPO_RE_N AON_PAD_CTL0 | GPO_RTYPE

Parameters
pin_maskThis parameter can be a combination of the following values:
pullThis parameter can be one of the following values:
Return values
None

Definition at line 351 of file gr55xx_ll_aon_gpio.h.

References LL_AON_GPIO_PULL_NO, and LL_AON_GPIO_PULL_UP.