/* Configures the input sampling mode for a group of pins. 
Configures the input sampling mode for a group of pins, to control when the physical I/O pin value is sampled and stored inside the microcontroller. */
void system_pinmux_group_set_input_sample_mode(PortGroup *const port, const uint32_t mask, const enum system_pinmux_pin_sample mode)
/* Configures the input sampling mode for a group of pins. 
Configures the input sampling mode for a group of pins, to control when the physical I/O pin value is sampled and stored inside the microcontroller. */
void system_pinmux_group_set_input_sample_mode(PortGroup *const port, const uint32_t mask, const enum system_pinmux_pin_sample mode)
{
	Assert(port);
	if (mode == SYSTEM_PINMUX_PIN_SAMPLE_ONDEMAND) {
		port->CTRL.reg |= mask;
	} else {
		port->CTRL.reg &= ~mask;
	}
}