aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/hal/include/i2c.h4
-rw-r--r--os/hal/src/i2c.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/include/i2c.h b/os/hal/include/i2c.h
index acf09ec9c..96f85460d 100644
--- a/os/hal/include/i2c.h
+++ b/os/hal/include/i2c.h
@@ -256,11 +256,11 @@ extern "C" {
void i2cObjectInit(I2CDriver *i2cp);
void i2cStart(I2CDriver *i2cp, const I2CConfig *config);
void i2cStop(I2CDriver *i2cp);
- void i2cMasterTransmit(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg,
+ void i2cMasterTransmit(I2CDriver *i2cp, I2CSlaveConfig *i2cscfg,
uint16_t slave_addr,
uint8_t *txbuf, size_t txbytes,
uint8_t *rxbuf, size_t rxbytes);
- void i2cMasterReceive(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg,
+ void i2cMasterReceive(I2CDriver *i2cp, I2CSlaveConfig *i2cscfg,
uint16_t slave_addr, uint8_t *rxbuf, size_t rxbytes);
void i2cMasterStart(I2CDriver *i2cp);
void i2cMasterStop(I2CDriver *i2cp);
diff --git a/os/hal/src/i2c.c b/os/hal/src/i2c.c
index 9ce2cc76f..68735b037 100644
--- a/os/hal/src/i2c.c
+++ b/os/hal/src/i2c.c
@@ -166,7 +166,7 @@ void i2cStop(I2CDriver *i2cp) {
* you want transmit only
*/
void i2cMasterTransmit(I2CDriver *i2cp,
- const I2CSlaveConfig *i2cscfg,
+ I2CSlaveConfig *i2cscfg,
uint16_t slave_addr,
uint8_t *txbuf,
size_t txbytes,
@@ -210,7 +210,7 @@ void i2cMasterTransmit(I2CDriver *i2cp,
* @param[in] rxbuf pointer to receive buffer
*/
void i2cMasterReceive(I2CDriver *i2cp,
- const I2CSlaveConfig *i2cscfg,
+ I2CSlaveConfig *i2cscfg,
uint16_t slave_addr,
uint8_t *rxbuf,
size_t rxbytes){