1
0
Fork 0
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:
Martin Budden 2017-08-16 16:31:33 +01:00 committed by GitHub
commit 677b34f6be

View file

@ -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
}; };