<airframe name="pt_ant">

<section name="DATALINK" prefix="DATALINK_">
    <define name="DEVICE_TYPE" value="PPRZ"/>
    <define name="DEVICE_ADDRESS" value="...."/>
</section>


  <makefile>

tunnel.ARCHDIR = $(ARCH)

tunnel.CFLAGS += -DFBW -DBOARD_CONFIG=\"conf_demo.h\" -DUSE_LED -DSYS_TIME_LED=1
tunnel.srcs += $(SRC_ARCH)/uart_tunnel.c

ARCH=lpc21

FLASH_MODE = IAP
PT_ANT = antenna

main.ARCHDIR = $(ARCH)

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

main.CFLAGS += -DPERIODIC_FREQUENCY='60.' -DUSE_SYS_TIME
main.srcs += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c

main.CFLAGS += -DUSE_LED

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

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

main.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport -DDOWNLINK_DEVICE=Uart0
main.srcs += subsystems/datalink/downlink.c subsystems/datalink/pprz_transport.c $(PT_ANT)/pt_ant_telemetry.c

main.CFLAGS += -DDATALINK=PPRZ -DPPRZ_UART=Uart0
main.srcs += $(PT_ANT)/pt_ant_datalink.c

main.srcs += $(PT_ANT)/pt_ant_motors.c

main.CFLAGS += -DUSE_AMI601 -DI2C_BUF_LEN=32
main.srcs += AMI601.c i2c.c $(SRC_ARCH)/i2c_hw.c

#main.srcs += pt_ant_estimator.c

main.CFLAGS += -DUSE_UART1 -DUART1_BAUD=B9600
#main.CFLAGS += -DUSE_GPS -DUBX -DGPS_LINK=Uart1
#main.CFLAGS += -DGPS_USER_CALLBACK=pt_ant_estimator_update_self_gps -DGPS_USER_CALLBACK_HEADER=\"pt_ant_estimator.h\"
#main.CFLAGS += -DGPS_CONFIGURE -DGPS_BAUD=38400
#main.srcs += gps_ubx.c gps.c

</makefile>
</airframe>

