mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 16:58:48 +08:00
bcaba7c720
modules developpers can provide - a description of the module - a list of the configuration variables and flags (configure and define) - a list of sections to add to the airframe file
32 lines
1.4 KiB
XML
32 lines
1.4 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
<!-- Currently only available on LPC21xx arch
|
|
Digi Xtend RSSI PWM Module
|
|
@configure XTEND_RSSI_PWM_INPUT_CHANNEL on which arch dep input the pwm line is connected
|
|
For LPC21xx on the TWOG:
|
|
1 - INPUT CAPTURE CAP0.3 on P0.29 (TWOG ADC5, 5V->3.3V voltage divider)
|
|
2 - INPUT CAPTURE CAP0.0 on P0.30 (TWOG ADC4, no voltage divider)
|
|
-->
|
|
<module name="xtend_rssi" dir="datalink">
|
|
<doc>
|
|
<description>
|
|
Digi Xtend RSSI PWM Module
|
|
For LPC21xx on the TWOG:
|
|
1 - INPUT CAPTURE CAP0.3 on P0.29 (TWOG ADC5, 5V->3.3V voltage divider)
|
|
2 - INPUT CAPTURE CAP0.0 on P0.30 (TWOG ADC4, no voltage divider)
|
|
Currently only available on LPC21xx arch
|
|
</description>
|
|
<configure name="XTEND_RSSI_PWM_INPUT_CHANNEL" name="input" description="select on which arch dep input the pwm line is connected"/>
|
|
</doc>
|
|
<depend require="pwm_meas.xml"/>
|
|
<header>
|
|
<file name="xtend_rssi.h"/>
|
|
</header>
|
|
<periodic fun="xtend_rssi_periodic()" freq="0.5"/>
|
|
<makefile target="ap">
|
|
<file name="xtend_rssi.c"/>
|
|
<define name="XTEND_RSSI_PWM_INPUT_CHANNEL" value="$(XTEND_RSSI_PWM_INPUT_CHANNEL)"/> <!-- configure the pwm input to be used in airframe file -->
|
|
<define name="USE_PWM_INPUT$(XTEND_RSSI_PWM_INPUT_CHANNEL)" value="PWM_PULSE_TYPE_ACTIVE_HIGH"/> <!-- rssi signal is active high -->
|
|
</makefile>
|
|
</module>
|
|
|