Skip to content

Commit 72df69b

Browse files
committed
[LL][GPIO] Remove duplicated output mode configuration in LL_GPIO_Init() API
1 parent 21895aa commit 72df69b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Src/stm32c0xx_ll_gpio.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,6 @@ ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStru
209209
pinpos++;
210210
}
211211

212-
if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTERNATE))
213-
{
214-
/* Check Output mode parameters */
215-
assert_param(IS_LL_GPIO_OUTPUT_TYPE(GPIO_InitStruct->OutputType));
216-
217-
/* Output mode configuration*/
218-
LL_GPIO_SetPinOutputType(GPIOx, GPIO_InitStruct->Pin, GPIO_InitStruct->OutputType);
219-
220-
}
221212
return (SUCCESS);
222213
}
223214

0 commit comments

Comments
 (0)