13.6.3.2.2 Function port_pin_set_config()

Writes a Port pin configuration to the hardware module.

void port_pin_set_config( const uint8_t gpio_pin, const struct port_config *const config)

Writes out a given configuration of a Port pin configuration to the hardware module.

Note: If the pin direction is set as an output, the pull-up/pull-down input configuration setting is ignored.
Table 13-9. Parameters
Data directionParameter nameDescription

[in]

gpio_pin

Index of the GPIO pin to configure

[in]

config

Configuration settings for the pin