mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Merge pull request #3867 from jflyper/bfdev-fix-F7LL-broken-GPIO
IOConfigGPIOConfigAF: OD flag to OutputType member
This commit is contained in:
commit
677b34f6be
1 changed files with 2 additions and 1 deletions
|
@ -294,8 +294,9 @@ void IOConfigGPIOAF(IO_t io, ioConfig_t cfg, uint8_t af)
|
||||||
|
|
||||||
LL_GPIO_InitTypeDef init = {
|
LL_GPIO_InitTypeDef init = {
|
||||||
.Pin = IO_Pin(io),
|
.Pin = IO_Pin(io),
|
||||||
.Mode = (cfg >> 0) & 0x13,
|
.Mode = (cfg >> 0) & 0x03,
|
||||||
.Speed = (cfg >> 2) & 0x03,
|
.Speed = (cfg >> 2) & 0x03,
|
||||||
|
.OutputType = (cfg >> 4) & 0x01,
|
||||||
.Pull = (cfg >> 5) & 0x03,
|
.Pull = (cfg >> 5) & 0x03,
|
||||||
.Alternate = af
|
.Alternate = af
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue