/* Select GPIO pins to be used by this peripheral. 
This needs to be configured when no transaction is in progress. */
void i2c_select_pins(uint32_t i2c, uint32_t scl_pin, uint32_t sda_pin)
/* Select GPIO pins to be used by this peripheral. 
This needs to be configured when no transaction is in progress. */
void i2c_select_pins(uint32_t i2c, uint32_t scl_pin, uint32_t sda_pin)
{
	if (scl_pin != GPIO_UNCONNECTED) {
		I2C_PSELSCL(i2c) = __GPIO2PIN(scl_pin);
	} else {
		I2C_PSELSCL(i2c) = scl_pin;
	}
	if (sda_pin != GPIO_UNCONNECTED) {
		I2C_PSELSDA(i2c) = __GPIO2PIN(sda_pin);
	} else {
		I2C_PSELSDA(i2c) = sda_pin;
	}
}