File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ From 992ed2cca5ebbce5f817d9fd25b2162ff8e77bbe Mon Sep 17 00:00:00 2001
2+ From: Martino Facchin <m.facchin@arduino.cc>
3+ Date: Mon, 29 Apr 2024 10:41:37 +0200
4+ Subject: [PATCH] stm32h7: adc: DUAL_PAD: fix definitions for GENERIC_M4 target
5+
6+ Completes 2e1da0130 and fixes https://github.com/arduino/ArduinoCore-mbed/issues/867
7+ ---
8+ .../TARGET_STM32H747xI/TARGET_GENERIC_STM32H747_M4/PinNames.h | 2 +-
9+ targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py | 2 +-
10+ 2 files changed, 2 insertions(+), 2 deletions(-)
11+
12+ diff --git a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_GENERIC_STM32H747_M4/PinNames.h b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_GENERIC_STM32H747_M4/PinNames.h
13+ index 97d48334d7..04a34504a7 100644
14+ --- a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_GENERIC_STM32H747_M4/PinNames.h
15+ +++ b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_GENERIC_STM32H747_M4/PinNames.h
16+ @@ -43,7 +43,7 @@
17+ extern "C" {
18+ #endif
19+
20+ - #define DUAL_PAD 0xF00
21+ + #define DUAL_PAD 0x800
22+
23+ typedef enum {
24+ ALT0 = 0x100,
25+ diff --git a/targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py b/targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py
26+ index 44a95f9c02..903ce5f7e0 100644
27+ --- a/targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py
28+ +++ b/targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py
29+ @@ -491,7 +491,7 @@ extern "C" {
30+
31+ if DUAL_PAD:
32+ line_to_write = ("""
33+ - #define DUAL_PAD 0xF00
34+ + #define DUAL_PAD 0x800
35+ """)
36+ out_h_file.write(line_to_write)
37+
38+ - -
39+ 2.44.0
40+
You can’t perform that action at this time.
0 commit comments