Skip to content

Commit 2469431

Browse files
committed
Hack the two pins for A4 and A5 to say they are Z pins
This fixes issue where the constants A4 and A5 were computed as the sum of two pin numbers as PC_2 and PC_3 pins are duplicated on these boards. Note: accessing those pins directly by index like 18, 19 will probably not work
1 parent 40f8554 commit 2469431

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: loader/boards/arduino_portenta_h7_m7.overlay

+4-2
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,10 @@
309309
<&gpioz 1 0>, /* A1 ADC2_INP1 */
310310
<&gpioz 2 0>, /* A2 ADC3_INP0 */
311311
<&gpioz 3 0>, /* A3 ADC3_INP1 */
312-
<&gpioc 2 0>, /* A4 _ALT0? ADC1_INP12 */
313-
<&gpioc 3 0>, /* A5 _ALT0? ADC1_INP13 */
312+
<&gpioz 4 0>, /* A4 hack for duplicate PC_2 */
313+
<&gpioz 5 0>, /* A5 hack for duplicate PC_3 */
314+
/* <&gpioc 2 0>, A4 _ALT0? ADC1_INP12 */
315+
/* <&gpioc 3 0>, A5 _ALT0? ADC1_INP13 */
314316
<&gpioa 4 0>, /* A6 ADC1_INP18 */
315317
<&gpioa 6 0>, /* A7 ADC1_INP7 */
316318

0 commit comments

Comments
 (0)