From 4f2fd95c467152f7a28760c00fd9f9e8b1ec7596 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Tue, 4 Jan 2022 11:08:17 -0800 Subject: [PATCH] f1 analog mapping --- firmware/boards/f1_dave/port.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/boards/f1_dave/port.cpp b/firmware/boards/f1_dave/port.cpp index 15f87d0..dd7182d 100644 --- a/firmware/boards/f1_dave/port.cpp +++ b/firmware/boards/f1_dave/port.cpp @@ -18,13 +18,13 @@ ADCConversionGroup convGroup = nullptr, 0, ADC_CR2_CONT, // CR1, CR2 // SMPR1 - 0, + 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)