mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
8be5c426b6
Start working on #940 This replaces ```xml <depend require="foo|bar" conflict="baz"/> ``` with ```xml <depends>foo,bar</depends> <conflicts>baz</conflicts> ``` and now allows to specify OR dependencies with | (pipe) similaro to Debian depends: ```xml <depends>foo,bar,this|that</depends> ``` which would depend on: foo AND bar AND (this OR that)
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="xtend_rssi" dir="datalink">
|
|
<doc>
|
|
<description>
|
|
Digi Xtend RSSI PWM Module.
|
|
For LPC21xx on the TWOG:
|
|
- INPUT CAPTURE CAP0.3 on P0.29 (TWOG ADC5, 5V to 3.3V voltage divider)
|
|
- INPUT CAPTURE CAP0.0 on P0.30 (TWOG ADC4, no voltage divider)
|
|
|
|
Currently only available on LPC21xx arch.
|
|
You must also load the module pwm_meas.xml
|
|
</description>
|
|
<configure name="XTEND_RSSI_PWM_INPUT_CHANNEL" value="input" description="select on which arch dep input the pwm line is connected"/>
|
|
</doc>
|
|
<depends>pwm_meas</depends>
|
|
<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>
|
|
|