mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-29 19:17:28 +08:00
made adc_init called by mcu_init when PERIPHERALS_AUTO_INIT is defined
This commit is contained in:
@@ -39,6 +39,12 @@
|
||||
#if defined USE_I2C1 || defined USE_I2C2
|
||||
#include "mcu_periph/i2c.h"
|
||||
#endif
|
||||
#if defined USE_ADC
|
||||
#include "mcu_periph/adc.h"
|
||||
#endif
|
||||
#ifdef USE_USB_SERIAL
|
||||
#include "mcu_periph/usb_serial.h"
|
||||
#endif
|
||||
#endif /* PERIPHERALS_AUTO_INIT */
|
||||
|
||||
void mcu_init(void) {
|
||||
@@ -83,6 +89,9 @@ void mcu_init(void) {
|
||||
#ifdef USE_USB_SERIAL
|
||||
VCOM_init();
|
||||
#endif
|
||||
#ifdef USE_ADC
|
||||
adc_init();
|
||||
#endif
|
||||
#endif /* PERIPHERALS_AUTO_INIT */
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user