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/lis3.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/lis3.c')
-rw-r--r-- | testhal/STM32/I2C/lis3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/I2C/lis3.c b/testhal/STM32/I2C/lis3.c index 00bb712a1..14616478b 100644 --- a/testhal/STM32/I2C/lis3.c +++ b/testhal/STM32/I2C/lis3.c @@ -19,7 +19,7 @@ static i2cblock_t accel_rx_data[ACCEL_RX_DEPTH]; static i2cblock_t accel_tx_data[ACCEL_TX_DEPTH];
/* Error trap */
-static void i2c_lis3_error_cb(I2CDriver *i2cp, I2CSlaveConfig *i2cscfg){
+static void i2c_lis3_error_cb(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg){
(void)i2cscfg;
int status = 0;
status = i2cp->id_i2c->SR1;
@@ -62,7 +62,7 @@ static msg_t I2CAccelThread(void *arg) { }
/* This callback raise up when transfer finished */
-static void i2c_lis3_cb(I2CDriver *i2cp, I2CSlaveConfig *i2cscfg){
+static void i2c_lis3_cb(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg){
(void) i2cp;
// only wake up processing thread
if (i2c_accel_tp != NULL) {
|