<!DOCTYPE module SYSTEM "module.dtd">

<module name="ahrs_gx3" dir="ahrs">
  <doc>
    <description>
      AHRS driver for GX3.
    </description>
    <configure name="GX3_PORT" value="UART3" description="uart for GX3"/>
    <configure name="GX3_BAUD" value="B921600" description="GX3 uart baud rate"/>
  </doc>
  <autoload name="ahrs_sim"/>
  <header>
    <file name="ahrs.h" dir="subsystems"/>
  </header>

  <makefile target="ap">
    <configure name="GX3_PORT" default="UART3" case="upper|lower"/>
    <configure name="GX3_BAUD" default="B921600"/>
    <define name="USE_$(GX3_PORT_UPPER)"/>
    <define name="$(GX3_PORT_UPPER)_BAUD" value="$(GX3_BAUD)"/>

    <define name="USE_AHRS"/>
    <define name="USE_IMU"/>

    <file name="ahrs.c" dir="subsystems"/>
    <file name="imu.c" dir="subsystems"/>
    <file name="ahrs_gx3.c" dir="subsystems/ahrs"/>
  </makefile>
</module>
