diff options
-rw-r--r-- | os/hal/include/i2c.h | 2 | ||||
-rw-r--r-- | testhal/STM32/I2C/lis3.c | 2 | ||||
-rw-r--r-- | testhal/STM32/I2C/max1236.c | 2 | ||||
-rw-r--r-- | testhal/STM32/I2C/tmp75.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/include/i2c.h b/os/hal/include/i2c.h index ba7131c26..b2df49899 100644 --- a/os/hal/include/i2c.h +++ b/os/hal/include/i2c.h @@ -147,7 +147,7 @@ struct I2CSlaveConfig{ i2cblock_t *txbuf; /*!< Pointer to transmit buffer.*/
/* Status Change @p EventSource.*/
- EventSource sevent;
+ EventSource *sevent;
};
diff --git a/testhal/STM32/I2C/lis3.c b/testhal/STM32/I2C/lis3.c index 14616478b..68d5a5403 100644 --- a/testhal/STM32/I2C/lis3.c +++ b/testhal/STM32/I2C/lis3.c @@ -79,7 +79,7 @@ static const I2CSlaveConfig lis3 = { i2c_lis3_error_cb,
accel_rx_data,
accel_tx_data,
- {NULL},
+ NULL,
};
diff --git a/testhal/STM32/I2C/max1236.c b/testhal/STM32/I2C/max1236.c index 2ba5f89b0..636f04f74 100644 --- a/testhal/STM32/I2C/max1236.c +++ b/testhal/STM32/I2C/max1236.c @@ -44,7 +44,7 @@ static const I2CSlaveConfig max1236 = { i2c_max1236_error_cb,
max1236_rx_data,
max1236_tx_data,
- {NULL},
+ NULL,
};
#define max1236_addr 0b0110100
diff --git a/testhal/STM32/I2C/tmp75.c b/testhal/STM32/I2C/tmp75.c index 1d1432601..66449ad6e 100644 --- a/testhal/STM32/I2C/tmp75.c +++ b/testhal/STM32/I2C/tmp75.c @@ -39,7 +39,7 @@ static const I2CSlaveConfig tmp75 = { i2c_tmp75_error_cb,
tmp75_rx_data,
tmp75_tx_data,
- {NULL},
+ NULL,
};
#define tmp75_addr 0b1001000
|