px4 allow up to 6 I2C busses

This commit is contained in:
David Sidrane authored and Daniel Agar committed 2023-11-15 11:10:47 -05:00
1 parent 51cda9edb0
commit f0bc7d287d
1 file changed
+4
@@ -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