mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-09 22:08:56 +08:00
io timer: fix input capture on various boards
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user