mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-29 22:34:07 +08:00
fmuv5 board_config: added TIM5_CH4 spare pin & 3 Input Cap channels
This commit is contained in:
parent
b5d637cd0c
commit
572a6ec8e7
@ -360,10 +360,14 @@
|
||||
*/
|
||||
#define GPIO_TIM2_CH1_IN /* PA5 T22C1 FMU_CAP1 */ GPIO_TIM2_CH1IN_3
|
||||
#define GPIO_TIM2_CH2_IN /* PB3 T22C2 FMU_CAP2 */ GPIO_TIM2_CH2IN_2
|
||||
#define GPIO_TIM2_CH4_IN /* PB1 T22C4 FMU_CAP3 */ GPIO_TIM2_CH4IN_2
|
||||
#define GPIO_TIM2_CH4_IN /* PB11 T22C4 FMU_CAP3 */ GPIO_TIM2_CH4IN_2
|
||||
|
||||
#define DIRECT_PWM_CAPTURE_CHANNELS 3
|
||||
|
||||
/* TIM5_CH4 SPARE PIN */
|
||||
#define GPIO_TIM5_CH4IN /* PI0 T5C4 TIM5_SPARE_4 */ GPIO_TIM5_CH4IN_2
|
||||
#define GPIO_TIM5_CH4OUT /* PI0 T5C4 TIM5_SPARE_4 */ GPIO_TIM5_CH4OUT_2
|
||||
|
||||
/* PWM
|
||||
*
|
||||
* 8 PWM outputs are configured.
|
||||
@ -520,6 +524,19 @@
|
||||
|
||||
#define GPS_DEFAULT_UART_PORT "/dev/ttyS0" /* UART1 on FMUv5 */
|
||||
|
||||
/* Input Capture Channels. */
|
||||
#define INPUT_CAP1_TIMER 2
|
||||
#define INPUT_CAP1_CHANNEL /* T4C1 */ 1
|
||||
#define GPIO_INPUT_CAP1 /* PA5 */ GPIO_TIM2_CH1_IN
|
||||
|
||||
#define INPUT_CAP2_TIMER 2
|
||||
#define INPUT_CAP2_CHANNEL /* T4C2 */ 2
|
||||
#define GPIO_INPUT_CAP2 /* PB3 */ GPIO_TIM2_CH2_IN
|
||||
|
||||
#define INPUT_CAP3_TIMER 2
|
||||
#define INPUT_CAP3_CHANNEL /* T4C4 */ 4
|
||||
#define GPIO_INPUT_CAP3 /* PB11 */ GPIO_TIM2_CH4_IN
|
||||
|
||||
/* PWM input driver. Use FMU AUX5 pins attached to timer4 channel 2 */
|
||||
#define PWMIN_TIMER 4
|
||||
#define PWMIN_TIMER_CHANNEL /* T4C2 */ 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user