/* I2C Set the 7 bit Slave Address for the Peripheral. 
This sets an address for Slave mode operation, in 7 bit form. */
void i2c_set_own_7bit_slave_address(uint32_t i2c, uint8_t slave)
/* I2C Set the 7 bit Slave Address for the Peripheral. 
This sets an address for Slave mode operation, in 7 bit form. */
void i2c_set_own_7bit_slave_address(uint32_t i2c, uint8_t slave)
{
	uint16_t val = (uint16_t)(slave << 1);
	val |= (1 << 14);
	I2C_OAR1(i2c) = val;
}