1
0
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:
Brian Webb 2012-03-19 17:59:05 -07:00
parent fdf853a2fe
commit fc2d81cd8c
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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();
}
/**