<!DOCTYPE module SYSTEM "module.dtd">

<module name="baro_hca" dir="sensors">
  <doc>
    <description>Baro sensortechnics HCA (I2C)</description>
    <configure name="BARO_HCA_I2C_DEV" value="i2cX" description="select which i2c peripheral to use (default i2c0)"/>
  </doc>

  <header>
    <file name="baro_hca.h"/>
  </header>
  <init fun="baro_hca_init()"/>
  <periodic fun="baro_hca_read_periodic()" freq="10."/>
  <event fun="BaroHcaEvent()"/>

  <makefile target="ap">
    <configure name="BARO_HCA_I2C_DEV" default="i2c0" case="upper|lower"/>
    <define name="USE_$(BARO_HCA_I2C_DEV_UPPER)"/>
    <define name="BARO_HCA_I2C_DEV" value="$(BARO_HCA_I2C_DEV_LOWER)"/>
    <file name="baro_hca.c"/>
  </makefile>

</module>
