<!DOCTYPE module SYSTEM "module.dtd">

<module name="temp_temod" dir="meteo">
  <doc>
    <description>Hygrosens TEMOD-I2C-Rx temperature sensor</description>
    <configure name="TEMOD_I2C_DEV" value="i2cX" description="select i2c peripheral to use (default i2c0)"/>
    <define name="TEMOD_TYPE" value="type" description="device type (default TEMOD_I2C_R1)"/>
    <define name="TEMOD_SDLOG" value="TRUE|FALSE" description="start logging to SD card"/>
  </doc>
  <header>
    <file name="temp_temod.h"/>
  </header>
  <init fun="temod_init()"/>
  <periodic fun="temod_periodic()" freq="8"/>
  <event fun="temod_event()"/>
  <makefile target="ap">
    <configure name="TEMOD_I2C_DEV" default="i2c0" case="upper|lower"/>
    <define name="USE_$(TEMOD_I2C_DEV_UPPER)"/>
    <define name="TEMOD_I2C_DEV" value="$(TEMOD_I2C_DEV_LOWER)"/>
    <file name="temp_temod.c"/>
  </makefile>
</module>

