riot_sys

Function i2c_init

Source
pub unsafe extern "C" fn i2c_init(dev: i2c_t)
Expand description

@brief Initialize the given I2C bus

The given I2C device will be initialized with the parameters as specified in the boards periph_conf.h, using the pins and the speed value given there.

The bus MUST not be acquired before initializing it, as this is handled internally by the i2c_init function!

@param[in] dev the device to initialize