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-d51de3d6d3f4
master
barthess 2011-06-23 18:29:22 +00:00
parent fbeff97d92
commit 10153a4f30
4 changed files with 57 additions and 58 deletions

View File

@ -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;
}; };

View File

@ -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. **********************************/

View File

@ -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);
} }
/** /**