aerofc: Remove ADC configuration

Battery voltage and current will be read in another way in future.
This commit is contained in:
José Roberto de Souza 2016-09-08 20:29:44 -03:00 committed by Lorenz Meier
parent 007731df46
commit 8788e2e81e
2 changed files with 7 additions and 12 deletions

View File

@ -135,17 +135,11 @@ __EXPORT void stm32_boardinitialize(void)
stm32_configgpio(GPIO_S1);
stm32_configgpio(GPIO_S2);
/* configure always-on ADC pins */
stm32_configgpio(GPIO_ADC1_IN10);
/* configure SPI interfaces */
stm32_spiinitialize();
/* configure LEDs (empty call to NuttX' ledinit) */
up_ledinit();
}

View File

@ -96,13 +96,14 @@
* PC0 VOLTAGE JP2-13,14 - 1.84 @16.66 1.67 @15.12 Scale 0.1105
*
*/
#define ADC_CHANNELS (1 << 10)
/* todo:Revisit - cannnot tell from schematic - some could be ADC */
// ADC defines to be used in sensors.cpp to read from a particular channel
#define ADC_BATTERY_VOLTAGE_CHANNEL 10
#define ADC_BATTERY_CURRENT_CHANNEL ((uint8_t)(-1))
#define ADC_CHANNELS 0
/*
* ADC defines just to not break sensors.cpp build, battery voltage and current
* will be read in another way in future.
*/
#define ADC_BATTERY_VOLTAGE_CHANNEL 0
#define ADC_BATTERY_CURRENT_CHANNEL ((uint8_t)(-1))
/* User GPIOs
*