<airframe name="autoplato">

  <makefile>



ARCH=lpc21
BOARD_CFG = \"boards/olimex_lpc_h2148.h\"
FLASH_MODE = IAP

include $(PAPARAZZI_SRC)/conf/firmwares/booz2_common.makefile

test_usb.ARCHDIR = $(ARCH)

test_usb.CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG) $(BOOZ_CFLAGS)
test_usb.srcs += $(SRC_BOOZ_TEST)/atpt_main.c
test_usb.CFLAGS += -DPERIODIC_FREQUENCY='512.'
# -DTIME_LED=1
test_usb.CFLAGS += -DUSE_LED
test_usb.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c $(SRC_ARCH)/armVIC.c

#test_usb.CFLAGS += -DUSE_UART1 -DUART1_BAUD=B57600
#test_usb.srcs += $(SRC_ARCH)/mcu_periph/uart_arch.c
#test_usb.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport -DDOWNLINK_DEVICE=Uart1
#test_usb.srcs += subsystems/datalink/downlink.c subsystems/datalink/pprz_transport.c

test_usb.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport -DUSE_USB_SERIAL
test_usb.CFLAGS += -DDOWNLINK_DEVICE=UsbS -DPPRZ_UART=UsbS -DDATALINK=PPRZ
test_usb.srcs += subsystems/datalink/downlink.c $(SRC_ARCH)/mcu_periph/uart_arch.c $(SRC_ARCH)/usb_ser_hw.c subsystems/datalink/pprz_transport.c
# datalink.c
test_usb.srcs += $(SRC_ARCH)/lpcusb/usbhw_lpc.c $(SRC_ARCH)/lpcusb/usbcontrol.c
test_usb.srcs += $(SRC_ARCH)/lpcusb/usbstdreq.c $(SRC_ARCH)/lpcusb/usbinit.c

test_usb.CFLAGS += -DACTUATORS=\"servos_direct_hw.h\" -DSERVOS_NB=6 -DPWM_SERVO_0 -DPWM_SERVO_5
test_usb.CFLAGS += -DSERVOS_PERIOD='SERVOS_TICS_OF_USEC(12500)'
test_usb.srcs += $(SRC_ARCH)/servos_direct_hw.c



 </makefile>

</airframe>
