mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 12:58:52 +08:00
px4_micro_hal:Define PX4_NUMBER_I2C_BUSES based on the arch/chip
PX4_NUMBER_I2C_BUSES number of busses that the HW can support not all of them my be usesd. I.E. The STM32F427 has 3 I2C busses but only I2C1 and I2C3 are used.
This commit is contained in:
committed by
Lorenz Meier
parent
98396a0bc5
commit
9a21969189
@@ -48,12 +48,14 @@ __BEGIN_DECLS
|
||||
# define PX4_BBSRAM_SIZE STM32_BBSRAM_SIZE
|
||||
# define PX4_BBSRAM_GETDESC_IOCTL STM32_BBSRAM_GETDESC_IOCTL
|
||||
# define PX4_FLASH_BASE STM32_FLASH_BASE
|
||||
# define PX4_NUMBER_I2C_BUSES STM32_NI2C
|
||||
# endif
|
||||
# if defined(CONFIG_ARCH_CHIP_STM32F7)
|
||||
# include <chip.h>
|
||||
# define PX4_BBSRAM_SIZE STM32F7_BBSRAM_SIZE
|
||||
# define PX4_BBSRAM_GETDESC_IOCTL STM32F7_BBSRAM_GETDESC_IOCTL
|
||||
# define PX4_FLASH_BASE 0x08000000
|
||||
# define PX4_NUMBER_I2C_BUSES STM32F7_NI2C
|
||||
# endif
|
||||
# include <stm32_tim.h>
|
||||
# include <stm32_spi.h>
|
||||
|
||||
Reference in New Issue
Block a user