/* Get i2c index according to the SDA PinName.  */
static uint32_t i2c_index_get(PinName sda)
/* Get i2c index according to the SDA PinName.  */
static uint32_t i2c_index_get(PinName sda)
{
	if ((sda == _PA_26) || (sda == _PB_6)) {
		return 0;
	} else {
		assert_param(0);
	}
	return 2;
}