diff --git a/conf/autopilot/twin_avr.makefile b/conf/autopilot/twin_avr.makefile new file mode 100644 index 0000000000..d91c4e072e --- /dev/null +++ b/conf/autopilot/twin_avr.makefile @@ -0,0 +1,21 @@ +ARCHI=avr + +ap.ARCHDIR = $(ARCHI) +ap.ARCH = atmega128 +ap.TARGET = autopilot +ap.TARGETDIR = autopilot +ap.LOW_FUSE = a0 +ap.HIGH_FUSE = 99 +ap.EXT_FUSE = ff +ap.LOCK_FUSE = ff +ap.srcs = main_ap.c $(SRC_ARCH)/modem.c link_mcu.c $(SRC_ARCH)/link_mcu_ap.c $(SRC_ARCH)/spi_ap.c $(SRC_ARCH)/adc_ap.c gps_ubx.c infrared.c pid.c nav.c $(SRC_ARCH)/uart_ap.c estimator.c if_calib.c mainloop.c cam.c + +fbw.ARCHDIR = $(ARCHI) +fbw.ARCH = atmega8 +fbw.TARGET = fbw +fbw.TARGETDIR = fbw +fbw.LOW_FUSE = 2e +fbw.HIGH_FUSE = cb +fbw.EXT_FUSE = ff +fbw.LOCK_FUSE = ff +fbw.srcs = main_fbw.c $(SRC_ARCH)/ppm.c $(SRC_ARCH)/servo.c $(SRC_ARCH)/spi_fbw.c $(SRC_ARCH)/uart_fbw.c $(SRC_ARCH)/adc_fbw.c diff --git a/conf/autopilot/v1_2.makefile b/conf/autopilot/v1_2.makefile new file mode 100644 index 0000000000..cbf2ed0882 --- /dev/null +++ b/conf/autopilot/v1_2.makefile @@ -0,0 +1,3 @@ +include $(PAPARAZZI_SRC)/conf/autopilot/twin_avr.makefile + +LOCAL_CFLAGS += -DCTL_BRD_V1_2 diff --git a/conf/autopilot/v1_2_1.makefile b/conf/autopilot/v1_2_1.makefile new file mode 100644 index 0000000000..6ee42e35dc --- /dev/null +++ b/conf/autopilot/v1_2_1.makefile @@ -0,0 +1,3 @@ +include $(PAPARAZZI_SRC)/conf/autopilot/twin_avr.makefile + +LOCAL_CFLAGS += -DCTL_BRD_V1_2_1