We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3772168 commit 750eaddCopy full SHA for 750eadd
ports/stm32/boards/make-pins.py
@@ -59,7 +59,8 @@ class Stm32Pin(boardgen.Pin):
59
def __init__(self, cpu_pin_name):
60
super().__init__(cpu_pin_name)
61
62
- # Pins ending in "_C" are special analog-only pins.
+ # Pins ending in "_C" correspond to the analog-only pad of a pair
63
+ # of dual (analog) pads found on H7 MCUs (eg PA0 and PA0_C pair).
64
self._analog_only = cpu_pin_name.endswith("_C")
65
if self._analog_only:
66
cpu_pin_name = cpu_pin_name[:-2]
ports/stm32/boards/stm32f4xx_prefix.c
@@ -45,4 +45,6 @@
45
.adc_num = p_adc_num, \
46
.adc_channel = p_adc_channel, \
47
}
48
+#else
49
+#define PIN_ANALOG DUAL_PAD_SUPPORT_NOT_ENABLED__CONFIGURE__MICROPY_HW_ANALOG_SWITCH_Pxy
50
#endif
0 commit comments