PWM input driver: Add missing GPIO config for pin reset

This commit is contained in:
Lorenz Meier 2015-08-13 11:38:46 +02:00
parent 4e2bcf3315
commit 588146e536
1 changed files with 4 additions and 0 deletions

View File

@ -320,7 +320,11 @@ void PWMIN::_timer_init(void)
/* run with interrupts disabled in case the timer is already
* setup. We don't want it firing while we are doing the setup */
irqstate_t flags = irqsave();
/* configure input pin */
stm32_configgpio(GPIO_PWM_IN);
/* configure reset pin */
stm32_configgpio(GPIO_VDD_RANGEFINDER_EN);
/* claim our interrupt vector */
irq_attach(PWMIN_TIMER_VECTOR, pwmin_tim_isr);