Skip to content

Commit

Permalink
i2c_master: remove deprecated functions (#24832)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Jan 19, 2025
1 parent cedd49c commit 58aea4b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions platforms/avr/drivers/i2c_master.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@

#include <stdint.h>

// ### DEPRECATED - DO NOT USE ###
#define i2c_writeReg(devaddr, regaddr, data, length, timeout) i2c_write_register(devaddr, regaddr, data, length, timeout)
#define i2c_writeReg16(devaddr, regaddr, data, length, timeout) i2c_write_register16(devaddr, regaddr, data, length, timeout)
#define i2c_readReg(devaddr, regaddr, data, length, timeout) i2c_read_register(devaddr, regaddr, data, length, timeout)
#define i2c_readReg16(devaddr, regaddr, data, length, timeout) i2c_read_register16(devaddr, regaddr, data, length, timeout)
// ###############################

#define I2C_READ 0x01
#define I2C_WRITE 0x00

Expand Down
7 changes: 0 additions & 7 deletions platforms/chibios/drivers/i2c_master.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@

#include <stdint.h>

// ### DEPRECATED - DO NOT USE ###
#define i2c_writeReg(devaddr, regaddr, data, length, timeout) i2c_write_register(devaddr, regaddr, data, length, timeout)
#define i2c_writeReg16(devaddr, regaddr, data, length, timeout) i2c_write_register16(devaddr, regaddr, data, length, timeout)
#define i2c_readReg(devaddr, regaddr, data, length, timeout) i2c_read_register(devaddr, regaddr, data, length, timeout)
#define i2c_readReg16(devaddr, regaddr, data, length, timeout) i2c_read_register16(devaddr, regaddr, data, length, timeout)
// ###############################

typedef int16_t i2c_status_t;

#define I2C_STATUS_SUCCESS (0)
Expand Down

0 comments on commit 58aea4b

Please sign in to comment.