mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 03:27:33 +08:00
added module to measure and report digi xtend rssi, based on pwm_input driver for lpc21xx
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE module SYSTEM "module.dtd">
|
||||
<!--
|
||||
To enable each pwm measurement input, one must define
|
||||
USE_PWM_INPUTx where x is the channel(s) to use.
|
||||
For the lpc21xx, there are 4 channels:
|
||||
USE_PWM_INPUT1 on P0.29 (TWOG ADC_5)
|
||||
USE_PWM_INPUT2 on P0.30 (TWOG ADC_4)
|
||||
USE_PWM_INPUT3 on P0.27 (Not Available?)
|
||||
USE_PWM_INPUT4 on P0.28 (TWOG ADC_6)
|
||||
-->
|
||||
<module name="pwm_measure" dir="core">
|
||||
<header>
|
||||
<file name="pwm_measure.h"/>
|
||||
</header>
|
||||
<init fun="pwm_measure_init()"/>
|
||||
<makefile>
|
||||
<file_arch name="pwm_measure_hw.c"/>
|
||||
<file name="pwm_measure.c"/>
|
||||
<define name="USE_PWM_INPUT"/> <!-- required to enable pwm_input driver on lpc21 arch -->
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE module SYSTEM "module.dtd">
|
||||
<!-- Currently only available on LPC21xx arch
|
||||
Need to also load/use the pwm_measure.xml module
|
||||
Possible rssi pwm input pin values for TWOG:
|
||||
<define name="PWM_MEAS_ON_TWOG_ADC5"/> (P0.29)
|
||||
<define name="PWM_MEAS_ON_TWOG_ADC4"/> (P0.30)
|
||||
<define name="PWM_MEAS_ON_TWOG_ADC6"/> (P0.28)
|
||||
-->
|
||||
<module name="xtend_rssi" dir="datalink">
|
||||
<depend require="pwm_measure.xml"/>
|
||||
<header>
|
||||
<file name="xtend_rssi.h"/>
|
||||
</header>
|
||||
<periodic fun="xtend_rssi_periodic()" freq="2"/>
|
||||
<makefile>
|
||||
<file name="xtend_rssi.c"/>
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
Reference in New Issue
Block a user