.read = i2c_genericRead,
};
-struct I2cHardware i2c_stm32_hw[] =
+static struct I2cHardware i2c_stm32_hw[] =
{
{ /* I2C1 */
.base = (struct stm32_i2c *)I2C1_BASE,
},
};
-MOD_DEFINE(i2c);
-
/**
* Initialize I2C module.
*/
i2c->hw->base->TRISE |= (CR2_FREQ_36MHZ + 1);
i2c->hw->base->CR1 |= CR1_PE_SET;
-
- MOD_INIT(i2c);
}