mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 01:53:48 +08:00
modified xtend_rssi module to use a wrapper module for pwm_input so multiple modules can use pwm input
This commit is contained in:
@@ -7,17 +7,18 @@
|
||||
2 - INPUT CAPTURE CAP0.0 on P0.30 (TWOG ADC4, no voltage divider)
|
||||
-->
|
||||
<module name="xtend_rssi" dir="datalink">
|
||||
<depend require="pwm_input_mod.xml"/>
|
||||
<header>
|
||||
<file name="xtend_rssi.h"/>
|
||||
</header>
|
||||
<init fun="xtend_rssi_init()"/>
|
||||
<!-- <init fun="xtend_rssi_init()"/> -->
|
||||
<periodic fun="xtend_rssi_periodic()" freq="0.5"/>
|
||||
<makefile target="ap">
|
||||
<file name="xtend_rssi.c"/>
|
||||
<file name="pwm_input.c" dir="mcu_periph"/>
|
||||
<file_arch name="pwm_input_arch.c" dir="mcu_periph"/>
|
||||
<!-- <file name="pwm_input.c" dir="mcu_periph"/> -->
|
||||
<!-- <file_arch name="pwm_input_arch.c" dir="mcu_periph"/> -->
|
||||
<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"/> <!-- needed to enable the pwm_input interrupts in sys_time_hw.c -->
|
||||
<!-- <define name="USE_PWM_INPUT"/> --> <!-- needed to enable the pwm_input interrupts in sys_time_hw.c -->
|
||||
<define name="USE_PWM_INPUT$(XTEND_RSSI_PWM_INPUT_CHANNEL)" value="PWM_PULSE_TYPE_ACTIVE_HIGH"/> <!-- rssi signal is active high -->
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
Reference in New Issue
Block a user