aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-06-22 18:00:20 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-06-22 18:00:20 +0000
commit3f2e823d2aafa5e8ab70fd51b643de12c8989e76 (patch)
tree490c0d8bc13d523a37a45e1435cd29258d1956fe
parent24987e2873a946bc41ee1c5088b703abf9d7c526 (diff)
downloadChibiOS-3f2e823d2aafa5e8ab70fd51b643de12c8989e76.tar.gz
ChibiOS-3f2e823d2aafa5e8ab70fd51b643de12c8989e76.tar.bz2
ChibiOS-3f2e823d2aafa5e8ab70fd51b643de12c8989e76.zip
I2C. Small improvemets
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3069 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/include/i2c.h2
-rw-r--r--testhal/STM32/I2C/lis3.c2
-rw-r--r--testhal/STM32/I2C/max1236.c2
-rw-r--r--testhal/STM32/I2C/tmp75.c2
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