mirror of https://github.com/rusefi/wideband.git
f1 analog mapping
This commit is contained in:
parent
085b0419db
commit
4f2fd95c46
|
@ -18,13 +18,13 @@ ADCConversionGroup convGroup =
|
||||||
nullptr,
|
nullptr,
|
||||||
0, ADC_CR2_CONT, // CR1, CR2
|
0, ADC_CR2_CONT, // CR1, CR2
|
||||||
// SMPR1
|
// SMPR1
|
||||||
0,
|
0,
|
||||||
// SMPR2
|
// SMPR2
|
||||||
ADC_SMPR2_SMP_AN0(ADC_SAMPLE) | ADC_SMPR2_SMP_AN2(ADC_SAMPLE) | ADC_SMPR2_SMP_AN3(ADC_SAMPLE),
|
ADC_SMPR2_SMP_AN3(ADC_SAMPLE) | ADC_SMPR2_SMP_AN0(ADC_SAMPLE) | ADC_SMPR2_SMP_AN2(ADC_SAMPLE),
|
||||||
// SQR
|
// SQR
|
||||||
ADC_SQR1_NUM_CH(ADC_CHANNEL_COUNT),
|
ADC_SQR1_NUM_CH(ADC_CHANNEL_COUNT),
|
||||||
0,
|
0,
|
||||||
ADC_SQR3_SQ1_N(0) | ADC_SQR3_SQ2_N(2) | ADC_SQR3_SQ3_N(3)
|
ADC_SQR3_SQ1_N(3) | ADC_SQR3_SQ2_N(0) | ADC_SQR3_SQ3_N(2)
|
||||||
};
|
};
|
||||||
|
|
||||||
static float AverageSamples(adcsample_t* buffer, size_t idx)
|
static float AverageSamples(adcsample_t* buffer, size_t idx)
|
||||||
|
|
Loading…
Reference in New Issue