I2C. Fixed indent style. All tabs changed to 2 spaces.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3071 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
fbeff97d92
commit
10153a4f30
|
@ -146,8 +146,7 @@ struct I2CSlaveConfig{
|
||||||
i2cblock_t *rxbuf; /*!< Pointer to receive buffer. */
|
i2cblock_t *rxbuf; /*!< Pointer to receive buffer. */
|
||||||
i2cblock_t *txbuf; /*!< Pointer to transmit buffer.*/
|
i2cblock_t *txbuf; /*!< Pointer to transmit buffer.*/
|
||||||
|
|
||||||
/* Status Change @p EventSource.*/
|
EventSource *sevent; /*!< Status Change @p EventSource.*/
|
||||||
EventSource *sevent;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -172,8 +172,8 @@ struct I2CDriver{
|
||||||
i2cflags_t flags; /*!< State flags.*/
|
i2cflags_t flags; /*!< State flags.*/
|
||||||
|
|
||||||
uint16_t slave_addr; /*!< Current slave address. */
|
uint16_t slave_addr; /*!< Current slave address. */
|
||||||
uint8_t slave_addr1; /*!< 7-bit address of the slave with r\w bit.*/
|
uint8_t slave_addr1;/*!< 7-bit address of the slave with r\w bit.*/
|
||||||
uint8_t slave_addr2; /*!< Used in 10-bit address mode. */
|
uint8_t slave_addr2;/*!< Used in 10-bit address mode. */
|
||||||
|
|
||||||
/*********** End of the mandatory fields. **********************************/
|
/*********** End of the mandatory fields. **********************************/
|
||||||
|
|
||||||
|
|
|
@ -251,7 +251,7 @@ void i2cAddFlagsI(I2CDriver *i2cp, i2cflags_t mask) {
|
||||||
chDbgCheck(i2cp != NULL, "i2cAddFlagsI");
|
chDbgCheck(i2cp != NULL, "i2cAddFlagsI");
|
||||||
|
|
||||||
i2cp->errors |= mask;
|
i2cp->errors |= mask;
|
||||||
chEvtBroadcastI(&i2cp->id_slave_config->sevent);
|
chEvtBroadcastI(&i2cp->sevent);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue