diff options
author | Andrew Tridgell <andrew@tridgell.net> | 2015-02-21 18:15:08 +1100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-23 19:52:38 +0100 |
commit | 322392d85331a69b96a0ce6cd3db19bfbe02f592 (patch) | |
tree | 4d7c5939c0023fd2ff7e795f6be5c6874c5ca1fc | |
parent | 086caddf73555700724d98e5ac17b34e1cc6726e (diff) | |
download | px4-firmware-322392d85331a69b96a0ce6cd3db19bfbe02f592.tar.gz px4-firmware-322392d85331a69b96a0ce6cd3db19bfbe02f592.tar.bz2 px4-firmware-322392d85331a69b96a0ce6cd3db19bfbe02f592.zip |
fmuv2: setup for PWM input on timer4, channel 2
-rw-r--r-- | src/drivers/boards/px4fmu-v2/board_config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/boards/px4fmu-v2/board_config.h b/src/drivers/boards/px4fmu-v2/board_config.h index 2fd8bc724..273af1023 100644 --- a/src/drivers/boards/px4fmu-v2/board_config.h +++ b/src/drivers/boards/px4fmu-v2/board_config.h @@ -207,6 +207,11 @@ __BEGIN_DECLS #define HRT_TIMER 8 /* use timer8 for the HRT */ #define HRT_TIMER_CHANNEL 1 /* use capture/compare channel */ +/* PWM input driver. Use FMU AUX5 pins attached to timer4 channel 2 */ +#define PWMIN_TIMER 4 +#define PWMIN_TIMER_CHANNEL 2 +#define GPIO_PWM_IN GPIO_TIM4_CH2IN_2 + /**************************************************************************************************** * Public Types ****************************************************************************************************/ |