px4 allow up to 6 I2C busses

This commit is contained in:
David Sidrane 2023-06-22 08:01:40 -07:00 committed by Daniel Agar
parent 51cda9edb0
commit f0bc7d287d
1 changed files with 4 additions and 0 deletions

View File

@ -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