1
0
Fork 0
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:
jflyper 2018-05-18 17:22:58 +09:00
parent ca09a8e2fc
commit f9a43099db
22 changed files with 219 additions and 113 deletions

View file

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