<!DOCTYPE module SYSTEM "module.dtd">

<module name="atmega_i2c_cam_ctrl" dir="digital_cam">
  <doc>
    <description>
      Trigger Digital Camera (I2C).
      Using I2C connected remote microcontroller
    </description>
    <define name="DC_SHOOT_ON_BUTTON_RELEASE" />
    <define name="DC_SHOT_SYNC_SEND" value="TRUE|FALSE" description="send DC_SHOT message when photo was taken (default: TRUE)"/>
  </doc>
  <conflicts>digital_cam,digital_cam_servo,digital_cam_uart</conflicts>
  <header>
    <file name="atmega_i2c_cam_ctrl.h"/>
    <file name="dc.h"/>
  </header>

  <init fun="atmega_i2c_cam_ctrl_init()"/>
  <periodic fun="atmega_i2c_cam_ctrl_periodic()"  autorun="TRUE" freq="4"/>
  <event fun="atmega_i2c_cam_ctrl_event()"/>

  <datalink message="PAYLOAD_COMMAND" fun="ParseCameraCommand()"/>

  <makefile target="ap">
    <file name="atmega_i2c_cam_ctrl.c"/>
    <file name="dc.c"/>
    <define name="ATMEGA_I2C_DEV" value="i2c0"/>
    <define name="USE_I2C0" value="1"/>
  </makefile>

  <makefile target="sim">
    <file name="sim_i2c_cam_ctrl.c"/>
    <file name="dc.c"/>
  </makefile>

</module>

