include/nuttx/i2c/i2c_master.h: Add a definition to distinguish a new START of messages from a repeated start. No lower-half I2C drivers actually implement this new flag bit, however. drivers/i2c/i2c_writeread.c: Use new repeated START definition where appopriated. Other: Some cosmetic changes, updates to README files, etc.

This commit is contained in:
Gregory Nutt
2018-08-03 07:43:57 -06:00
parent ac5b2ea049
commit ee28cd9aeb
5 changed files with 39 additions and 37 deletions
+2 -1
View File
@@ -77,8 +77,9 @@
#define I2C_M_READ 0x0001 /* Read data, from slave to master */
#define I2C_M_TEN 0x0002 /* Ten bit address */
#define I2C_M_NOSTOP 0x0040 /* Message should not end with a STOP */
#define I2C_M_NORESTART 0x0080 /* Message should not begin with
* (re-)start of transfer */
* (re-)START of transfer */
/* I2C Character Driver IOCTL Commands **************************************/
/* The I2C driver is intended to support application testing of the I2C bus.