mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
LedStrip - Fix missing GPIO Output type configuration.
This commit is contained in:
parent
3e6646ec45
commit
5a07194d62
1 changed files with 2 additions and 1 deletions
|
@ -44,9 +44,10 @@ void ws2811LedStripHardwareInit(void)
|
||||||
|
|
||||||
GPIO_PinAFConfig(GPIOB, GPIO_PinSource8, GPIO_AF_1);
|
GPIO_PinAFConfig(GPIOB, GPIO_PinSource8, GPIO_AF_1);
|
||||||
|
|
||||||
/* GPIOA Configuration: TIM16 Channel 1 as alternate function push-pull */
|
/* Configuration alternate function push-pull */
|
||||||
GPIO_InitStructure.GPIO_Pin = WS2811_PIN;
|
GPIO_InitStructure.GPIO_Pin = WS2811_PIN;
|
||||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
|
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
|
||||||
|
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
|
||||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
|
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
|
||||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||||
GPIO_Init(WS2811_GPIO, &GPIO_InitStructure);
|
GPIO_Init(WS2811_GPIO, &GPIO_InitStructure);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue