mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15: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
|
@ -393,13 +393,13 @@ void init(void)
|
|||
|
||||
#ifdef TARGET_BUS_INIT
|
||||
targetBusInit();
|
||||
|
||||
#else
|
||||
|
||||
#ifdef USE_SPI
|
||||
spiPinConfigure(spiPinConfig(0));
|
||||
|
||||
// Initialize CS lines and keep them high
|
||||
spiPreInit();
|
||||
spiPreinit();
|
||||
|
||||
#ifdef USE_SPI_DEVICE_1
|
||||
spiInit(SPIDEV_1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue