From 3f2e823d2aafa5e8ab70fd51b643de12c8989e76 Mon Sep 17 00:00:00 2001 From: barthess Date: Wed, 22 Jun 2011 18:00:20 +0000 Subject: I2C. Small improvemets git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3069 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/i2c.h | 2 +- testhal/STM32/I2C/lis3.c | 2 +- testhal/STM32/I2C/max1236.c | 2 +- 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 -- cgit v1.2.3