mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 22:17:01 +08:00
Baro is on spi
This commit is contained in:
@@ -168,11 +168,14 @@ else ifeq ($(BOARD), krooz)
|
|||||||
|
|
||||||
# PX4FMU
|
# PX4FMU
|
||||||
else ifeq ($(BOARD),$(filter $(BOARD),px4fmu))
|
else ifeq ($(BOARD),$(filter $(BOARD),px4fmu))
|
||||||
BARO_BOARD_CFLAGS += -DUSE_I2C2
|
|
||||||
BARO_BOARD_CFLAGS += -DBB_MS5611_I2C_DEV=i2c2
|
BARO_BOARD_CFLAGS += -DUSE_SPI1 -DUSE_SPI_SLAVE3
|
||||||
|
BARO_BOARD_CFLAGS += -DBB_MS5611_SPI_DEV=spi1
|
||||||
|
BARO_BOARD_CFLAGS += -DBB_MS5611_SLAVE_IDX=SPI_SLAVE3
|
||||||
|
|
||||||
BARO_BOARD_SRCS += peripherals/ms5611.c
|
BARO_BOARD_SRCS += peripherals/ms5611.c
|
||||||
BARO_BOARD_SRCS += peripherals/ms5611_i2c.c
|
BARO_BOARD_SRCS += peripherals/ms5611_spi.c
|
||||||
BARO_BOARD_SRCS += boards/baro_board_ms5611_i2c.c
|
BARO_BOARD_SRCS += boards/baro_board_ms5611_spi.c
|
||||||
|
|
||||||
# apogee baro
|
# apogee baro
|
||||||
else ifeq ($(BOARD), apogee)
|
else ifeq ($(BOARD), apogee)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#define BOARDS_PX4FMU_BARO_H
|
#define BOARDS_PX4FMU_BARO_H
|
||||||
|
|
||||||
// only for printing the baro type during compilation
|
// only for printing the baro type during compilation
|
||||||
#define BARO_BOARD BARO_BOARD_MS5611_I2C
|
#define BARO_BOARD BARO_BOARD_MS5611_SPI
|
||||||
|
|
||||||
extern void baro_event(void);
|
extern void baro_event(void);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user