STM32 PWM : correct GPIO free

pull/14444/head
jeromecoutant 2021-03-17 08:35:04 +01:00
parent c73413893f
commit 10e0759372
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,8 @@ void pwmout_init(pwmout_t *obj, PinName pin)
void pwmout_free(pwmout_t *obj)
{
// Configure GPIO
pin_function(obj->pin, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, 0));
// Configure GPIO back to reset value
pin_function(obj->pin, STM_PIN_DATA(STM_MODE_ANALOG, GPIO_NOPULL, 0));
}
void pwmout_write(pwmout_t *obj, float value)