From 70661645917cc9a8e492abb82828c55cf137b834 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Sun, 22 Dec 2019 05:50:08 -0800 Subject: Completely remove i2c_transmit_receive function (#7686) * Add i2c_transmit_receive function This function is listed in the ARM header file, but doesn't actually exist. * Remove i2c_transmit_receive function * Update DRV2605L read function to use i2c_readReg on both arm and avr --- drivers/arm/i2c_master.h | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/arm') diff --git a/drivers/arm/i2c_master.h b/drivers/arm/i2c_master.h index 346513ad8..3d3891289 100644 --- a/drivers/arm/i2c_master.h +++ b/drivers/arm/i2c_master.h @@ -101,7 +101,6 @@ void i2c_init(void); i2c_status_t i2c_start(uint8_t address); i2c_status_t i2c_transmit(uint8_t address, const uint8_t* data, uint16_t length, uint16_t timeout); i2c_status_t i2c_receive(uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout); -i2c_status_t i2c_transmit_receive(uint8_t address, uint8_t* tx_body, uint16_t tx_length, uint8_t* rx_body, uint16_t rx_length); i2c_status_t i2c_writeReg(uint8_t devaddr, uint8_t regaddr, const uint8_t* data, uint16_t length, uint16_t timeout); i2c_status_t i2c_readReg(uint8_t devaddr, uint8_t regaddr, uint8_t* data, uint16_t length, uint16_t timeout); void i2c_stop(void); -- cgit v1.2.3