diff options
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) {
|