mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
OD flag to OutputType member
This commit is contained in:
parent
8686e9521c
commit
7619700165
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 = {
|
||||
.Pin = IO_Pin(io),
|
||||
.Mode = (cfg >> 0) & 0x13,
|
||||
.Mode = (cfg >> 0) & 0x03,
|
||||
.Speed = (cfg >> 2) & 0x03,
|
||||
.OutputType = (cfg >> 4) & 0x01,
|
||||
.Pull = (cfg >> 5) & 0x03,
|
||||
.Alternate = af
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue