<airframe name="DEMO">

  <makefile>

ARCH=lpc21

FLASH_MODE = IAP


WIND_TUNNEL=wind_tunnel

ap.ARCHDIR = $(ARCH)

ap.CFLAGS += -DBOARD_CONFIG=\"conf_demo.h\" -I$(WIND_TUNNEL)
ap.srcs = $(WIND_TUNNEL)/main.c

ap.CFLAGS += -DPERIODIC_FREQUENCY='10.'
ap.srcs += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c

ap.CFLAGS += -DUSE_LED

ap.srcs += $(SRC_ARCH)/armVIC.c

ap.CFLAGS += -DUSE_UART0 -DUART0_BAUD=B38400
ap.srcs += $(SRC_ARCH)/mcu_periph/uart_arch.c

ap.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport -DDOWNLINK_DEVICE=uart0
ap.srcs += subsystems/datalink/downlink.c subsystems/datalink/pprz_transport.c

ap.CFLAGS += -DDATALINK=PPRZ -DPPRZ_UART=UART0
#ap.srcs += $(BOOZ)/booz_datalink.c

ap.srcs += $(WIND_TUNNEL)/wt_servo.c


#
#
#

MB=motor_bench

mb.ARCHDIR = $(ARCH)

mb.CFLAGS += -DBOARD_CONFIG=\"conf_demo.h\" -I$(WIND_TUNNEL) -I$(MB)
mb.srcs = $(WIND_TUNNEL)/main_mb.c

mb.CFLAGS += -DPERIODIC_FREQUENCY='100.'
mb.srcs += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c

mb.CFLAGS += -DUSE_LED

mb.srcs += $(SRC_ARCH)/armVIC.c

mb.CFLAGS += -DUSE_UART0 -DUART0_BAUD=B38400
mb.srcs += $(SRC_ARCH)/mcu_periph/uart_arch.c

mb.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport -DDOWNLINK_DEVICE=uart0
mb.srcs += subsystems/datalink/downlink.c subsystems/datalink/pprz_transport.c

mb.CFLAGS += -DDATALINK=PPRZ -DPPRZ_UART=UART0

mb.srcs += $(WIND_TUNNEL)/wt_servo.c

mb.CFLAGS += -DUSE_TWI_CONTROLLER
mb.CFLAGS += -DI2C_SCLL=100 -DI2C_SCLH=100
mb.srcs += i2c.c $(SRC_ARCH)/i2c_hw.c $(MB)/mb_twi_controller_mkk.c

mb.CFLAGS += -DMB_TACHO
mb.srcs += $(MB)/mb_tacho.c

#mb.CFLAGS += -DADC -DUSE_ADC_0 -DUSE_ADC_1
#mb.srcs += $(SRC_ARCH)/adc_hw.c
#mb.srcs += $(MB)/mb_current.c





  </makefile>

</airframe>
