made adc_init called by mcu_init when PERIPHERALS_AUTO_INIT is defined

This commit is contained in:
Antoine Drouin
2010-12-06 01:27:51 +01:00
parent c2479f9ba2
commit eea4e8c6ea
10 changed files with 12 additions and 18 deletions
+9
View File
@@ -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 */
}