mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
SPI CS preinit for configurability
This commit is contained in:
parent
ca09a8e2fc
commit
f9a43099db
22 changed files with 219 additions and 113 deletions
|
@ -52,7 +52,7 @@ bool flashInit(const flashConfig_t *flashConfig)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (IOGetOwner(busdev->busdev_u.spi.csnPin) != OWNER_SPI_PREINIT) {
|
||||
if (!IOIsFreeOrPreinit(busdev->busdev_u.spi.csnPin)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ bool flashInit(const flashConfig_t *flashConfig)
|
|||
}
|
||||
#endif
|
||||
|
||||
spiPreInitCs(flashConfig->csTag);
|
||||
spiPreinitCsByTag(flashConfig->csTag);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue