mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
periph/i2c: Editorial doc changes
This commit is contained in:
parent
cfc826012f
commit
1dfc5f8f52
@ -29,7 +29,7 @@
|
||||
* // before accessing the bus, we need to acquire it
|
||||
* i2c_acquire(dev);
|
||||
* // next we write the register address, but create no STOP condition when done
|
||||
* i2c_write_byte(dev, device_addr, reg_addr, (i2C_NOSTOP | I2C_ADDR10));
|
||||
* i2c_write_byte(dev, device_addr, reg_addr, (I2C_NOSTOP | I2C_ADDR10));
|
||||
* // and now we read the register value
|
||||
* i2c_read_byte(dev, device_addr, ®_value, I2C_ADDR10);
|
||||
* // finally we have to release the bus
|
||||
@ -425,4 +425,4 @@ int i2c_write_regs(i2c_t dev, uint16_t addr, uint16_t reg,
|
||||
#endif
|
||||
|
||||
#endif /* PERIPH_I2C_H */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user