Added xtend_rssi module, pwm_meas and pwm_input mcu peripheral for lpc21xx arch #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
See also #86