f1 analog mapping

This commit is contained in:
Matthew Kennedy 2022-01-04 11:08:17 -08:00
parent 085b0419db
commit 4f2fd95c46
1 changed files with 3 additions and 3 deletions

View File

@ -20,11 +20,11 @@ ADCConversionGroup convGroup =
// SMPR1
0,
// 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
ADC_SQR1_NUM_CH(ADC_CHANNEL_COUNT),
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)