px4 allow up to 6 I2C busses

This commit is contained in:
David Sidrane 2023-06-22 08:01:40 -07:00
parent bdb6f51e8b
commit 4c32a5ec07
1 changed files with 4 additions and 0 deletions

View File

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