boards: cubeorange enable pwm_input

Signed-off-by: Alex Mikhalev <alex@corvus-robotics.com>
This commit is contained in:
Alex Mikhalev 2021-04-07 16:02:54 -06:00 committed by Daniel Agar
parent 0c3e64a7f5
commit 1f4960d480
3 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,7 @@ px4_add_board(
#pca9685_pwm_out
power_monitor/ina226
#protocol_splitter
pwm_input
pwm_out_sim
pwm_out
px4io

View File

@ -44,6 +44,7 @@ px4_add_board(
pca9685_pwm_out
power_monitor/ina226
#protocol_splitter
pwm_input
pwm_out_sim
pwm_out
px4io

View File

@ -115,6 +115,11 @@
#define GPIO_TONE_ALARM_IDLE GPIO_BUZZER_1
#define GPIO_TONE_ALARM GPIO_TIM2_CH1OUT_2
/* PWM input driver. Use FMU AUX5 pins attached to timer4 channel 2 */
#define PWMIN_TIMER 4
#define PWMIN_TIMER_CHANNEL /* T4C2 */ 2
#define GPIO_PWM_IN /* PD13 */ GPIO_TIM4_CH2IN_2
/* USB
* OTG FS: PA9 OTG_FS_VBUS VBUS sensing
*/