mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 05:17:03 +08:00
picked changes from spi_rewrite
* up to 30c07a6ba53e45453ed766c6ffefd6cd0d606493
This commit is contained in:
+12
-3
@@ -46,7 +46,7 @@
|
||||
#ifdef USE_USB_SERIAL
|
||||
#include "mcu_periph/usb_serial.h"
|
||||
#endif
|
||||
#ifdef USE_SPI
|
||||
#if USE_SPI0 || USE_SPI1 || USE_SPI2
|
||||
#include "mcu_periph/spi.h"
|
||||
#endif
|
||||
#ifdef USE_DAC
|
||||
@@ -100,8 +100,17 @@ void mcu_init(void) {
|
||||
#ifdef USE_USB_SERIAL
|
||||
VCOM_init();
|
||||
#endif
|
||||
#ifdef USE_SPI
|
||||
spi_init();
|
||||
#if USE_SPI0
|
||||
spi0_init();
|
||||
#endif
|
||||
#if USE_SPI1
|
||||
spi1_init();
|
||||
#endif
|
||||
#if USE_SPI2
|
||||
spi2_init();
|
||||
#endif
|
||||
#if USE_SPI0 || USE_SPI1 || USE_SPI2
|
||||
spi_init_slaves();
|
||||
#endif
|
||||
#ifdef USE_DAC
|
||||
dac_init();
|
||||
|
||||
Reference in New Issue
Block a user