diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-22 08:38:54 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-22 08:38:54 +0000 |
commit | 24987e2873a946bc41ee1c5088b703abf9d7c526 (patch) | |
tree | c364bef723518fb326b041eb6b9f831750f70e47 /testhal/STM32/I2C/tmp75.c | |
parent | 70179f12dd387a82493d13fd51d5aab7e4e55674 (diff) | |
download | ChibiOS-24987e2873a946bc41ee1c5088b703abf9d7c526.tar.gz ChibiOS-24987e2873a946bc41ee1c5088b703abf9d7c526.tar.bz2 ChibiOS-24987e2873a946bc41ee1c5088b703abf9d7c526.zip |
I2C. Test changes
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3068 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/I2C/tmp75.c')
-rw-r--r-- | testhal/STM32/I2C/tmp75.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/I2C/tmp75.c b/testhal/STM32/I2C/tmp75.c index 6744fe325..1d1432601 100644 --- a/testhal/STM32/I2C/tmp75.c +++ b/testhal/STM32/I2C/tmp75.c @@ -19,7 +19,7 @@ static i2cblock_t tmp75_tx_data[TMP75_TX_DEPTH]; static int16_t temperature = 0;
// Simple error trap
-static void i2c_tmp75_error_cb(I2CDriver *i2cp, I2CSlaveConfig *i2cscfg){
+static void i2c_tmp75_error_cb(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg){
(void)i2cscfg;
int status = 0;
status = i2cp->id_i2c->SR1;
@@ -27,7 +27,7 @@ static void i2c_tmp75_error_cb(I2CDriver *i2cp, I2CSlaveConfig *i2cscfg){ }
/* This callback raise up when transfer finished */
-static void i2c_tmp75_cb(I2CDriver *i2cp, I2CSlaveConfig *i2cscfg){
+static void i2c_tmp75_cb(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg){
(void)*i2cp;
/* store temperature value */
temperature = (i2cscfg->rxbuf[0] << 8) + i2cscfg->rxbuf[1];
|