1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00

STM32F3DISCOVERY/CHEBUZZF3 - Move ADC pin definitions to target.h files

This commit is contained in:
Dominic Clifton 2015-02-04 19:12:13 +00:00
parent 8aee0b25e2
commit 430ccd2338
5 changed files with 59 additions and 11 deletions

View file

@ -25,6 +25,8 @@
#include "adc.h"
//#define DEBUG_ADC_CHANNELS
#ifdef USE_ADC
adc_config_t adcConfig[ADC_CHANNEL_COUNT];
volatile uint16_t adcValues[ADC_CHANNEL_COUNT];
@ -33,7 +35,7 @@ extern int16_t debug[4];
uint16_t adcGetChannel(uint8_t channel)
{
#if DEBUG_ADC_CHANNELS
#ifdef DEBUG_ADC_CHANNELS
if (adcConfig[0].enabled) {
debug[0] = adcValues[adcConfig[0].dmaIndex];
}