mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-05 18:51:00 +08:00
- new digital_cam_pprzlink module - factorize module with digital_cam_common - rename digital_cam to digital_cam_gpio - add test nodes to modules
53 lines
1.9 KiB
XML
53 lines
1.9 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="digital_cam_i2c" dir="digital_cam">
|
|
<doc>
|
|
<description>
|
|
Digital Photo Camera Triggering (using a I2C channel)
|
|
|
|
This module controls triggering of an attached device via an I2C command.
|
|
Typically a remote microcontroller (atmega/arduino) will then use the triggering/zoom/power commands.
|
|
Using the PAYLOAD_COMMAND, all functions of the camera can be controlled.
|
|
</description>
|
|
<configure name="ATMEGA_I2C_DEV" value="i2cX" description="select which i2c peripheral to use (default i2c0)"/>
|
|
<section name="DIGITAL_CAM" prefix="DC_">
|
|
<define name="SHOOT_ON_BUTTON_RELEASE" />
|
|
</section>
|
|
</doc>
|
|
<dep>
|
|
<depends>digital_cam_common</depends>
|
|
<conflicts>digital_cam_gpio,digital_cam_servo,digital_cam_uart,digital_cam_video,digital_cam_pprzlink</conflicts>
|
|
</dep>
|
|
<header>
|
|
<file name="atmega_i2c_cam_ctrl.h"/>
|
|
</header>
|
|
<init fun="atmega_i2c_cam_ctrl_init()"/>
|
|
<periodic fun="atmega_i2c_cam_ctrl_periodic()" autorun="TRUE" freq="10"/>
|
|
<event fun="atmega_i2c_cam_ctrl_event()"/>
|
|
<datalink message="PAYLOAD_COMMAND" fun="ParseCameraCommand(buf)"/>
|
|
|
|
<makefile target="ap">
|
|
<configure name="ATMEGA_I2C_DEV" default="i2c0" case="upper|lower"/>
|
|
<define name="USE_$(ATMEGA_I2C_DEV_UPPER)"/>
|
|
<define name="ATMEGA_I2C_DEV" value="$(ATMEGA_I2C_DEV_LOWER)"/>
|
|
<file name="atmega_i2c_cam_ctrl.c"/>
|
|
<test firmware="rotorcraft">
|
|
<define name="DOWNLINK_TRANSPORT" value="pprz_tp"/>
|
|
<define name="DOWNLINK_DEVICE" value="uart0"/>
|
|
<define name="USE_UART0"/>
|
|
<define name="USE_I2C0"/>
|
|
</test>
|
|
</makefile>
|
|
|
|
<makefile target="sim">
|
|
<file name="sim_i2c_cam_ctrl.c"/>
|
|
<test firmware="rotorcraft">
|
|
<define name="DOWNLINK_TRANSPORT" value="pprz_tp"/>
|
|
<define name="DOWNLINK_DEVICE" value="uart0"/>
|
|
<define name="USE_UART0"/>
|
|
</test>
|
|
</makefile>
|
|
|
|
</module>
|
|
|