Fix some alignment and long line issues
This commit is contained in:
parent
3023724cf2
commit
45e71a140a
@ -470,7 +470,8 @@ static int kinetis_i2c_start(struct kinetis_i2cdev_s *priv)
|
|||||||
/* Initiate actual transfer (send address) */
|
/* Initiate actual transfer (send address) */
|
||||||
|
|
||||||
putreg8((I2C_M_READ & msg->flags) == I2C_M_READ ?
|
putreg8((I2C_M_READ & msg->flags) == I2C_M_READ ?
|
||||||
I2C_READADDR8(msg->addr) : I2C_WRITEADDR8(msg->addr), KINETIS_I2C0_D);
|
I2C_READADDR8(msg->addr) : I2C_WRITEADDR8(msg->addr),
|
||||||
|
KINETIS_I2C0_D);
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
@ -648,7 +649,8 @@ static int kinetis_i2c_interrupt(int irq, FAR void *context)
|
|||||||
|
|
||||||
/* Go to TX mode */
|
/* Go to TX mode */
|
||||||
|
|
||||||
putreg8(I2C_C1_IICEN | I2C_C1_IICIE | I2C_C1_MST | I2C_C1_TX, KINETIS_I2C0_C1);
|
putreg8(I2C_C1_IICEN | I2C_C1_IICIE | I2C_C1_MST | I2C_C1_TX,
|
||||||
|
KINETIS_I2C0_C1);
|
||||||
|
|
||||||
msg->buffer[priv->rdcnt] = getreg8(KINETIS_I2C0_D);
|
msg->buffer[priv->rdcnt] = getreg8(KINETIS_I2C0_D);
|
||||||
priv->rdcnt++;
|
priv->rdcnt++;
|
||||||
@ -704,9 +706,9 @@ static int kinetis_i2c_transfer(FAR struct i2c_master_s *dev,
|
|||||||
priv->nmsg = count;
|
priv->nmsg = count;
|
||||||
priv->state = STATE_OK;
|
priv->state = STATE_OK;
|
||||||
|
|
||||||
/* Configure the I2C frequency. REVISIT: Note that the frequency is set only
|
/* Configure the I2C frequency. REVISIT: Note that the frequency is set
|
||||||
* on the first message. This could be extended to support different transfer
|
* only on the first message. This could be extended to support
|
||||||
* frequencies for each message segment.
|
* different transfer frequencies for each message segment.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
kinetis_i2c_setfrequency(priv, msgs->frequency);
|
kinetis_i2c_setfrequency(priv, msgs->frequency);
|
||||||
|
Loading…
Reference in New Issue
Block a user