Skip to content

Commit 750eadd

Browse files
committed
stm32: Apply review feedback.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 3772168 commit 750eadd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ports/stm32/boards/make-pins.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ class Stm32Pin(boardgen.Pin):
5959
def __init__(self, cpu_pin_name):
6060
super().__init__(cpu_pin_name)
6161

62-
# Pins ending in "_C" are special analog-only pins.
62+
# 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).
6364
self._analog_only = cpu_pin_name.endswith("_C")
6465
if self._analog_only:
6566
cpu_pin_name = cpu_pin_name[:-2]

ports/stm32/boards/stm32f4xx_prefix.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@
4545
.adc_num = p_adc_num, \
4646
.adc_channel = p_adc_channel, \
4747
}
48+
#else
49+
#define PIN_ANALOG DUAL_PAD_SUPPORT_NOT_ENABLED__CONFIGURE__MICROPY_HW_ANALOG_SWITCH_Pxy
4850
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy