<!-- dc motor controller -->
<airframe name="dc_mc">

  <makefile>

ARCHI=avr

main.ARCHDIR=$(ARCHI)
main.MCU = atmega8

# to check :  16MHz reso
main.LOW_FUSE  = 2e
main.HIGH_FUSE = cb
main.EXT_FUSE  = ff
main.LOCK_FUSE = ff

main.CFLAGS += -DBOARD_CONFIG=\"conf_dc_mc.h\"
main.srcs = main_dc_mc.c

main.CFLAGS += -DPERIODIC_TASK_PERIOD='CPU_TICKS_OF_SEC(10e-2)'
main.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c

main.CFLAGS += -DUSE_LED
#-DTIME_LED=1

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

main.srcs +=  $(SRC_ARCH)/dc_mc_link.c
main.srcs +=  $(SRC_ARCH)/dc_mc_power.c

  </makefile>

</airframe>
