mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Added optional ADC initialization to PipXtreme (turned off).
This commit is contained in:
parent
fdf853a2fe
commit
fc2d81cd8c
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user