<!DOCTYPE module SYSTEM "module.dtd">

<module name="actuators_esc32" dir="actuators" task="actuators">
  <doc>
    <description>
      Actuators Driver for x-vert vtol escs
   </description>
    <configure name="ESCS_PORT" value="usb_serial" description="Port used to connect to the atmegas escs."/>
    <configure name="ESCS_BAUD" value="250000" description="Baud rate for ESCS_PORT if a UART"/>
  </doc>
  <header>
    <file name="actuators_xvert.h" dir="subsystems/actuators"/>
  </header>
  <makefile target="ap">
    <define name="ACTUATORS"/>    
    <file_arch name="actuators_xvert.c" dir="subsystems/actuators"/>
    <file_arch name="actuators_pwm_arch.c" dir="subsystems/actuators"/>
    <configure name="ESCS_PORT" default="uart1" case="upper|lower"/>
    <configure name="ESCS_BAUD" default="250000"/>
    <define name="USE_$(ESCS_PORT_UPPER)"/>
    <define name="ESCS_UART" value="$(ESCS_PORT_LOWER)"/>
    <define name="$(ESCS_PORT_UPPER)_BAUD" value="$(ESCS_BAUD)"/>
  </makefile>
</module>

