diff --git a/flight/PipXtreme/Makefile b/flight/PipXtreme/Makefile index 28c652168..4962004a0 100755 --- a/flight/PipXtreme/Makefile +++ b/flight/PipXtreme/Makefile @@ -169,6 +169,7 @@ SRC += $(PIOSSTM32F10X)/pios_rtc.c SRC += $(PIOSSTM32F10X)/pios_wdg.c SRC += $(PIOSSTM32F10X)/pios_tim.c SRC += $(PIOSSTM32F10X)/pios_pwm.c +SRC += $(PIOSSTM32F10X)/pios_adc.c # PIOS USB related files (separated to make code maintenance more easy) SRC += $(PIOSSTM32F10X)/pios_usb.c diff --git a/flight/PipXtreme/System/pios_board.c b/flight/PipXtreme/System/pios_board.c index 24886bcd3..8a36a6a14 100755 --- a/flight/PipXtreme/System/pios_board.c +++ b/flight/PipXtreme/System/pios_board.c @@ -226,7 +226,10 @@ void PIOS_Board_Init(void) { /* Remap AFIO pin */ GPIO_PinRemapConfig( GPIO_Remap_SWJ_NoJTRST, ENABLE); - PIOS_GPIO_Init(); +#ifdef PIOS_INCLUDE_ADC + PIOS_ADC_Init(); +#endif + PIOS_GPIO_Init(); } /**