mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 03:27:33 +08:00
made spi_init() called from mcu_init() when PERIPHERALS_AUTO_INIT is defined
This commit is contained in:
+8
-2
@@ -45,6 +45,9 @@
|
||||
#ifdef USE_USB_SERIAL
|
||||
#include "mcu_periph/usb_serial.h"
|
||||
#endif
|
||||
#ifdef USE_SPI
|
||||
#include "mcu_periph/spi.h"
|
||||
#endif
|
||||
#endif /* PERIPHERALS_AUTO_INIT */
|
||||
|
||||
void mcu_init(void) {
|
||||
@@ -86,11 +89,14 @@ void mcu_init(void) {
|
||||
#ifdef USE_I2C2
|
||||
i2c2_init();
|
||||
#endif
|
||||
#ifdef USE_ADC
|
||||
adc_init();
|
||||
#endif
|
||||
#ifdef USE_USB_SERIAL
|
||||
VCOM_init();
|
||||
#endif
|
||||
#ifdef USE_ADC
|
||||
adc_init();
|
||||
#ifdef USE_SPI
|
||||
spi_init();
|
||||
#endif
|
||||
#endif /* PERIPHERALS_AUTO_INIT */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user