mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 20:38:27 +08:00
compile i2c for all rotorcraft
This commit is contained in:
@@ -95,6 +95,9 @@ endif
|
|||||||
#
|
#
|
||||||
ap.srcs += $(SRC_ARCH)/mcu_periph/uart_arch.c
|
ap.srcs += $(SRC_ARCH)/mcu_periph/uart_arch.c
|
||||||
|
|
||||||
|
# I2C is needed for speed controllers and barometers on lisa
|
||||||
|
ap.srcs += mcu_periph/i2c.c
|
||||||
|
ap.srcs += $(SRC_ARCH)/mcu_periph/i2c_arch.c
|
||||||
|
|
||||||
ap.srcs += $(SRC_BOOZ)/booz2_commands.c
|
ap.srcs += $(SRC_BOOZ)/booz2_commands.c
|
||||||
|
|
||||||
@@ -134,8 +137,6 @@ ifeq ($(BOARD), booz)
|
|||||||
ap.CFLAGS += -DROTORCRAFT_BARO_LED=$(BARO_LED) -DBOOZ2_ANALOG_BARO_PERIOD='SYS_TICS_OF_SEC((1./100.))'
|
ap.CFLAGS += -DROTORCRAFT_BARO_LED=$(BARO_LED) -DBOOZ2_ANALOG_BARO_PERIOD='SYS_TICS_OF_SEC((1./100.))'
|
||||||
else ifeq ($(BOARD), lisa_l)
|
else ifeq ($(BOARD), lisa_l)
|
||||||
ap.CFLAGS += -DUSE_I2C2
|
ap.CFLAGS += -DUSE_I2C2
|
||||||
ap.srcs += mcu_periph/i2c.c
|
|
||||||
ap.srcs += $(SRC_ARCH)/mcu_periph/i2c_arch.c
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user