mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
io timer: fix input capture on various boards
This commit is contained in:
parent
ccaad82f61
commit
e822da74b2
@ -889,6 +889,7 @@ int io_timer_channel_init(unsigned channel, io_timer_channel_mode_t mode,
|
||||
|
||||
case IOTimerChanMode_Capture:
|
||||
setbits = CCMR_C1_CAPTURE_INIT;
|
||||
gpio = timer_io_channels[channel].gpio_in | GPIO_PULLUP;
|
||||
break;
|
||||
|
||||
case IOTimerChanMode_CaptureDMA:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user