[−][src]Function mynewt::hw::hal::hal_i2c_enable
pub unsafe extern "C" fn hal_i2c_enable(i2c_num: u8) -> c_int
Enable I2C controller
This enables I2C controller before usage.
i2c_num
: Number of I2C controller
Return: 0 on success, non-zero error code on failure