1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +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:
dongie 2014-06-28 14:16:10 +09:00 committed by Dominic Clifton
parent 0ac2b51c60
commit b3a718882c
8 changed files with 113 additions and 47 deletions

View file

@ -126,7 +126,7 @@ void systemInit(bool overclock)
#ifndef CC3D
// Configure the rest of the stuff
i2cInit(I2C2);
i2cInit(I2CDEV_2);
#endif
// sleep for 100ms