I2C driver cleanup (#21273)
* remove i2c_start and i2c_stop from i2c drivers * remove static i2c_address variable from chibios i2c driver
This commit is contained in:
parent
2b0965944d
commit
e9bd7d7ad3
49 changed files with 280 additions and 603 deletions
|
@ -10,10 +10,7 @@
|
|||
#define MCP23017_A1 0
|
||||
#define MCP23017_A2 0
|
||||
|
||||
#define I2C_ADDR (0x20)
|
||||
#define I2C_ADDR_WRITE ((I2C_ADDR << 1) | I2C_WRITE)
|
||||
#define I2C_ADDR_READ ((I2C_ADDR << 1) | I2C_READ)
|
||||
|
||||
#define I2C_ADDR ((0x20) << 1)
|
||||
|
||||
#define MCP23017_B0_IODIRA 0x00
|
||||
#define MCP23017_B0_IODIRB 0x01
|
||||
|
@ -40,8 +37,6 @@
|
|||
|
||||
#define HOTDOX_I2C_TIMEOUT 100
|
||||
|
||||
typedef int16_t i2c_status_t;
|
||||
|
||||
void left_init(void);
|
||||
void left_scan(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue