/* Function for configuring I2C master module. 
This function will configure the I2C master module with the SERCOM module to be used and pinmux settings  */
static void configure_i2c_master(void)
/* Function for configuring I2C master module. 
This function will configure the I2C master module with the SERCOM module to be used and pinmux settings  */
static void configure_i2c_master(void)
{
	struct i2c_master_config config_i2c;
	i2c_master_get_config_defaults(&config_i2c);
	config_i2c.pinmux_pad0  = EDBG_I2C_SERCOM_PINMUX_PAD0;
	config_i2c.pinmux_pad1  = EDBG_I2C_SERCOM_PINMUX_PAD1;
	i2c_master_init(&i2c_master_instance, EDBG_I2C_MODULE, &config_i2c);
	i2c_master_enable(&i2c_master_instance);
}