1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

SPI to new IO (including SDCARD)

This commit is contained in:
blckmn 2016-06-03 22:56:45 +10:00
parent 37e7b5ee4a
commit 9c1c4fef33
19 changed files with 471 additions and 657 deletions

View file

@ -389,18 +389,16 @@ void init(void)
bstInit(BST_DEVICE);
#endif
#ifdef USE_SPI
spiInit(SPI1);
spiInit(SPI2);
spiInit(SPIDEV_1);
spiInit(SPIDEV_2);
#ifdef STM32F303xC
#ifdef ALIENFLIGHTF3
if (hardwareRevision == AFF3_REV_2) {
spiInit(SPI3);
spiInit(SPIDEV_3);
}
#else
spiInit(SPI3);
spiInit(SPIDEV_3);
#endif
#endif
#endif