mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-07 00:53:41 +08:00
*** empty log message ***
This commit is contained in:
@@ -2,17 +2,19 @@
|
||||
#include "adc.h"
|
||||
#include CONFIG
|
||||
|
||||
#ifdef ADC_CHANNEL_GENERIC1
|
||||
#ifdef USE_ADC_GENERIC
|
||||
uint16_t adc_generic_val1;
|
||||
uint16_t adc_generic_val2;
|
||||
#endif
|
||||
|
||||
#ifdef ADC_CHANNEL_GENERIC1
|
||||
static struct adc_buf buf_generic1;
|
||||
#endif
|
||||
|
||||
#ifdef ADC_CHANNEL_GENERIC2
|
||||
uint16_t adc_generic_val2;
|
||||
static struct adc_buf buf_generic2;
|
||||
#endif
|
||||
|
||||
|
||||
void adc_generic_init( void ) {
|
||||
#ifdef ADC_CHANNEL_GENERIC1
|
||||
adc_buf_channel(ADC_CHANNEL_GENERIC1, &buf_generic1, ADC_CHANNEL_GENERIC_NB_SAMPLES);
|
||||
|
||||
Reference in New Issue
Block a user