<airframe name="TEST_I2C">

  <makefile>

ARCH=lpc21
mb.ARCHDIR = $(ARCH)

LPC21ISP_BAUD = 38400
LPC21ISP_XTAL = 12000

#FLASH_MODE = IAP
FLASH_MODE = ISP

mb.CFLAGS += -DBOARD_CONFIG=\"conf_motor_bench.h\" -DPERIODIC_FREQUENCY='1000.' -DUSE_SYS_TIME
mb.srcs = $(SRC_ARCH)/main_test_i2c.c mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c $(SRC_ARCH)/armVIC.c

mb.CFLAGS += -DUSE_LED

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

  </makefile>

</airframe>


