forked from Archive/PX4-Autopilot
px4 allow up to 6 I2C busses
This commit is contained in:
parent
bdb6f51e8b
commit
4c32a5ec07
|
@ -67,6 +67,10 @@
|
|||
# define PX4_I2C_BUS_CLOCK_INIT {100000, 100000, 100000}
|
||||
# elif (PX4_NUMBER_I2C_BUSES) == 4
|
||||
# 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
|
||||
# error PX4_NUMBER_I2C_BUSES not supported
|
||||
# endif
|
||||
|
|
Loading…
Reference in New Issue