modified xtend_rssi module to use a wrapper module for pwm_input so multiple modules can use pwm input

This commit is contained in:
Stephen Dwyer
2011-11-13 20:23:49 -07:00
parent ca52582797
commit c0f3851faa
3 changed files with 10 additions and 5 deletions
+5 -4
View File
@@ -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>