diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-18 13:35:26 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-18 13:35:26 +0000 |
commit | f3e571839bd7649073664d1c2c4ea3842695b6d5 (patch) | |
tree | 0397ef728add30dec186fdce9b33676c0ceab4e9 /os/hal/platforms/STM32/i2c_lld.h | |
parent | 350ae0a1a9721b8889b038cf2fce6a88f1c288e3 (diff) | |
download | ChibiOS-f3e571839bd7649073664d1c2c4ea3842695b6d5.tar.gz ChibiOS-f3e571839bd7649073664d1c2c4ea3842695b6d5.tar.bz2 ChibiOS-f3e571839bd7649073664d1c2c4ea3842695b6d5.zip |
I2C. Code cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3056 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/i2c_lld.h')
-rw-r--r-- | os/hal/platforms/STM32/i2c_lld.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/os/hal/platforms/STM32/i2c_lld.h b/os/hal/platforms/STM32/i2c_lld.h index a97e863f6..815e451f0 100644 --- a/os/hal/platforms/STM32/i2c_lld.h +++ b/os/hal/platforms/STM32/i2c_lld.h @@ -157,15 +157,11 @@ struct I2CDriver{ /** * @brief Current configuration data. */ - I2CConfig *id_config; + const I2CConfig *id_config; /** * @brief Current slave configuration data. */ I2CSlaveConfig *id_slave_config; - /** - * @brief RW-bit sent to slave. - */ - uint8_t rw_bit; uint8_t slave_addr1; // 7-bit address of the slave uint8_t slave_addr2; // used in 10-bit address mode @@ -194,7 +190,7 @@ struct I2CDriver{ */ #define i2c_lld_wait_bus_free(i2cp) { \ uint32_t tmo = 0xffff; \ - while((i2cp->id_i2c->SR2 & I2C_SR2_BUSY) && tmo--) \ + while((i2cp->id_i2c->SR2 & I2C_SR2_BUSY) && tmo--) \ ; \ } |