Skip to content

Commit 66be931

Browse files
authored
unoq: fix: reversed A4 and A5 ADC channels and clarify pin assignments
Correct the io-channels ordering so that A4 maps to PC1 (ADC1 Channel 2) and A5 maps to PC0 (ADC1 Channel 1). The corresponding channels can be found in the STM datasheet on page 111. Also, add some comments to clarify which pins are being used.
1 parent 46a7877 commit 66be931

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

variants/arduino_uno_q_stm32u585xx/arduino_uno_q_stm32u585xx.overlay

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,12 @@
313313
control-gpios = <&gpiog 13 GPIO_ACTIVE_HIGH>; /* Internal SPI RDY */
314314
analog-switch-gpios = <&gpioa 2 GPIO_ACTIVE_HIGH>; /* Analog switch for VREF */
315315

316-
io-channels = <&adc1 9>,
317-
<&adc1 10>,
318-
<&adc1 11>,
319-
<&adc1 12>,
320-
<&adc1 1>,
321-
<&adc1 2>;
316+
io-channels = <&adc1 9>, /* A0 - PA4 */
317+
<&adc1 10>, /* A1 - PA5 */
318+
<&adc1 11>, /* A2 - PA6 */
319+
<&adc1 12>, /* A3 - PA7 */
320+
<&adc1 2>, /* A4 - PC1 */
321+
<&adc1 1>; /* A5 - PC0 */
322322

323323
dac = <&dac1>;
324324
dac-channels = <1>, <2>;

0 commit comments

Comments
 (0)