mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 07:53:43 +08:00
[stm32] ppm: remove extra gpio_enable_clock
not needed since this is already done in gpio_setup_pin_af
This commit is contained in:
@@ -157,10 +157,7 @@ void ppm_arch_init ( void ) {
|
||||
/* timer clock enable */
|
||||
rcc_periph_clock_enable(RCC_TIM_PPM);
|
||||
|
||||
/* GPIO clock enable */
|
||||
gpio_enable_clock(PPM_GPIO_PORT);
|
||||
|
||||
/* timer gpio configuration */
|
||||
/* GPIO configuration as input capture for timer */
|
||||
gpio_setup_pin_af(PPM_GPIO_PORT, PPM_GPIO_PIN, PPM_GPIO_AF, FALSE);
|
||||
|
||||
/* Time Base configuration */
|
||||
|
||||
Reference in New Issue
Block a user