mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Introduce per device pin pre-init
This commit is contained in:
parent
2e81109be1
commit
9ea1428d11
44 changed files with 219 additions and 201 deletions
|
@ -407,6 +407,10 @@ void max7456ReInit(void)
|
|||
}
|
||||
}
|
||||
|
||||
void max7456PreInit(const max7456Config_t *max7456Config)
|
||||
{
|
||||
spiPreinitRegister(max7456Config->csTag, max7456Config->preInitOPU ? IOCFG_OUT_PP : IOCFG_IPU, 1);
|
||||
}
|
||||
|
||||
// Here we init only CS and try to init MAX for first time.
|
||||
// Also detect device type (MAX v.s. AT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue