diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-23 19:06:33 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-23 19:06:33 +0000 |
commit | b1d043cede9e37dccff9731978887f51a514c387 (patch) | |
tree | 4590e365a81e4bb98fc938b47003758e1d15f4c2 /os/hal/include | |
parent | 97e643a2a2086bf8d52c77d599748849ff6a8148 (diff) | |
download | ChibiOS-b1d043cede9e37dccff9731978887f51a514c387.tar.gz ChibiOS-b1d043cede9e37dccff9731978887f51a514c387.tar.bz2 ChibiOS-b1d043cede9e37dccff9731978887f51a514c387.zip |
I2C. Some coding style improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3074 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/i2c.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/os/hal/include/i2c.h b/os/hal/include/i2c.h index c14bf2a74..a024ddd9e 100644 --- a/os/hal/include/i2c.h +++ b/os/hal/include/i2c.h @@ -115,7 +115,8 @@ typedef void (*i2ccallback_t)(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg); * @param[in] i2cscfg pointer to the @p I2CSlaveConfig object triggering the
* callback
*/
-typedef void (*i2cerrorcallback_t)(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg);
+typedef void (*i2cerrorcallback_t)(I2CDriver *i2cp,
+ const I2CSlaveConfig *i2cscfg);
/**
@@ -227,8 +228,10 @@ extern "C" { void i2cObjectInit(I2CDriver *i2cp);
void i2cStart(I2CDriver *i2cp, const I2CConfig *config);
void i2cStop(I2CDriver *i2cp);
- void i2cMasterTransmit(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg, uint16_t slave_addr, size_t txbytes, size_t rxbytes);
- void i2cMasterReceive(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg, uint16_t slave_addr, size_t rxbytes);
+ void i2cMasterTransmit(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg,
+ uint16_t slave_addr, size_t txbytes, size_t rxbytes);
+ void i2cMasterReceive(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg,
+ uint16_t slave_addr, size_t rxbytes);
void i2cMasterStart(I2CDriver *i2cp);
void i2cMasterStop(I2CDriver *i2cp);
void i2cAddFlagsI(I2CDriver *i2cp, i2cflags_t mask);
|