/* Writes a Port group configuration group to the hardware module. 
Writes out a given configuration of a Port group configuration to the hardware module. */
void port_group_set_config(PortGroup *const port, const uint32_t mask, const struct port_config *const config)
/* Writes a Port group configuration group to the hardware module. 
Writes out a given configuration of a Port group configuration to the hardware module. */
void port_group_set_config(PortGroup *const port, const uint32_t mask, const struct port_config *const config)
{
	Assert(port);
	Assert(config);
	struct system_pinmux_config pinmux_config;
	system_pinmux_get_config_defaults(&pinmux_config);
	pinmux_config.mux_position = SYSTEM_PINMUX_GPIO;
	pinmux_config.direction    = (enum system_pinmux_pin_dir)config->direction;
	pinmux_config.input_pull   = (enum system_pinmux_pin_pull)config->input_pull;
	pinmux_config.powersave    = config->powersave;
	system_pinmux_group_set_config(port, mask, &pinmux_config);
}