paparazzi/paparazzi — pull request #88 by scdwyer (2011-11-14 07:46:23+00:00)
Title: Added xtend_rssi module, pwm_meas and pwm_input mcu peripheral for lpc21xx arch

Cherry-picked previous changes onto paparazzi/dev. Please let me know if other changes needed.

The two module system compiles on microjet_example.xml, but hasn't been tested yet. The original single module method was tested on a TWOG with the radio modem on the ground, not in flight. No changes to the mcu_periph things since the test.

PWM input currently only works on lpc21xx arch, with input channels setup focusing on TWOG/Tiny 2. arch, but relatively easy to add more cases.

pwm_input got moved to a mcu_periph for hw access, got rid of some available channels that seem to conflict with generally in use resources (except perhaps in other arch use cases, like csc or motor bench testing).

pwm_meas is just a wrapper module that initializes the hw so other modules do not initialize the same pwm_input twice

xtend_rssi module reads in the pwm duty cycle from a Digi 9Xtend radio modem and sends a message with the duty %, rssi dB above fade margin and the datalink time, useful in checking range. Depends on the pwm_meas module to initialize.