<airframe name="TurntableUsb">

  <makefile>
ARCH=lpc21

FLASH_MODE = IAP

MB=firmwares/motor_bench

main.ARCHDIR = $(ARCH)

# uncomment the next line to set the number of steps the encoder has (default 256)
#main.CFLAGS += -DNB_STEP=256

main.CFLAGS += -DBOARD_CONFIG=\"boards/olimex_lpc_h2148.h\" -I$(MB)
main.CFLAGS += -DPERIPHERALS_AUTO_INIT
main.srcs = $(MB)/main_turntable.c
main.srcs += $(SRC_ARCH)/armVIC.c
main.srcs += mcu.c
main.srcs += $(SRC_ARCH)/mcu_arch.c

main.CFLAGS += -DUSE_LED
main.CFLAGS += -DPERIODIC_FREQUENCY='512.' -DSYS_TIME_LED=1
main.srcs += mcu_periph/sys_time.c $(MB)/turntable_systime.c

main.CFLAGS += -DUSE_USB_SERIAL
main.srcs += $(SRC_ARCH)/usb_ser_hw.c
main.srcs += $(SRC_ARCH)/lpcusb/usbhw_lpc.c $(SRC_ARCH)/lpcusb/usbinit.c
main.srcs += $(SRC_ARCH)/lpcusb/usbcontrol.c $(SRC_ARCH)/lpcusb/usbstdreq.c
main.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport -DDOWNLINK_DEVICE=usb_serial

main.srcs += subsystems/datalink/downlink.c subsystems/datalink/pprz_transport.c

  </makefile>

</airframe>
