mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
updated I2C driver to allow using I2C2 or I2C1 at compile time - call i2cInit with I2CDEV_1 or _2.
Applied same to SOFT_I2C driver (but the pin config is compile-time #define) Conflicts: src/board.h src/drv_i2c.h src/drv_system.c src/main/drivers/bus_i2c_soft.c src/main/drivers/bus_i2c_stm32f10x.c
This commit is contained in:
parent
0ac2b51c60
commit
b3a718882c
8 changed files with 113 additions and 47 deletions
|
@ -23,4 +23,8 @@
|
|||
#define ACC
|
||||
#define GYRO
|
||||
|
||||
// #define SOFT_I2C // enable to test software i2c
|
||||
// #define SOFT_I2C_PB1011 // If SOFT_I2C is enabled above, need to define pinout as well (I2C1 = PB67, I2C2 = PB1011)
|
||||
// #define SOFT_I2C_PB67
|
||||
|
||||
#define SENSORS_SET (SENSOR_ACC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue