forked from Archive/PX4-Autopilot
px4 allow up to 6 I2C busses
This commit is contained in:
parent
51cda9edb0
commit
f0bc7d287d
|
@ -67,6 +67,10 @@
|
||||||
# define PX4_I2C_BUS_CLOCK_INIT {100000, 100000, 100000}
|
# define PX4_I2C_BUS_CLOCK_INIT {100000, 100000, 100000}
|
||||||
# elif (PX4_NUMBER_I2C_BUSES) == 4
|
# elif (PX4_NUMBER_I2C_BUSES) == 4
|
||||||
# define PX4_I2C_BUS_CLOCK_INIT {100000, 100000, 100000, 100000}
|
# define PX4_I2C_BUS_CLOCK_INIT {100000, 100000, 100000, 100000}
|
||||||
|
# elif (PX4_NUMBER_I2C_BUSES) == 5
|
||||||
|
# define PX4_I2C_BUS_CLOCK_INIT {100000, 100000, 100000, 100000, 100000}
|
||||||
|
# elif (PX4_NUMBER_I2C_BUSES) == 6
|
||||||
|
# define PX4_I2C_BUS_CLOCK_INIT {100000, 100000, 100000, 100000, 100000, 100000}
|
||||||
# else
|
# else
|
||||||
# error PX4_NUMBER_I2C_BUSES not supported
|
# error PX4_NUMBER_I2C_BUSES not supported
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue