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_wdg.c
|
||||||
SRC += $(PIOSSTM32F10X)/pios_tim.c
|
SRC += $(PIOSSTM32F10X)/pios_tim.c
|
||||||
SRC += $(PIOSSTM32F10X)/pios_pwm.c
|
SRC += $(PIOSSTM32F10X)/pios_pwm.c
|
||||||
|
SRC += $(PIOSSTM32F10X)/pios_adc.c
|
||||||
|
|
||||||
# PIOS USB related files (separated to make code maintenance more easy)
|
# PIOS USB related files (separated to make code maintenance more easy)
|
||||||
SRC += $(PIOSSTM32F10X)/pios_usb.c
|
SRC += $(PIOSSTM32F10X)/pios_usb.c
|
||||||
|
@ -226,6 +226,9 @@ void PIOS_Board_Init(void) {
|
|||||||
/* Remap AFIO pin */
|
/* Remap AFIO pin */
|
||||||
GPIO_PinRemapConfig( GPIO_Remap_SWJ_NoJTRST, ENABLE);
|
GPIO_PinRemapConfig( GPIO_Remap_SWJ_NoJTRST, ENABLE);
|
||||||
|
|
||||||
|
#ifdef PIOS_INCLUDE_ADC
|
||||||
|
PIOS_ADC_Init();
|
||||||
|
#endif
|
||||||
PIOS_GPIO_Init();
|
PIOS_GPIO_Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user