Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patches: add adc DUAL_PAD patch for STM32H747_M4 #876

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From 992ed2cca5ebbce5f817d9fd25b2162ff8e77bbe Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Mon, 29 Apr 2024 10:41:37 +0200
Subject: [PATCH] stm32h7: adc: DUAL_PAD: fix definitions for GENERIC_M4 target

Completes 2e1da0130 and fixes https://github.com/arduino/ArduinoCore-mbed/issues/867
---
.../TARGET_STM32H747xI/TARGET_GENERIC_STM32H747_M4/PinNames.h | 2 +-
targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

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
index 97d48334d7..04a34504a7 100644
--- 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
@@ -43,7 +43,7 @@
extern "C" {
#endif

-#define DUAL_PAD 0xF00
+#define DUAL_PAD 0x800

typedef enum {
ALT0 = 0x100,
diff --git a/targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py b/targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py
index 44a95f9c02..903ce5f7e0 100644
--- a/targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py
+++ b/targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py
@@ -491,7 +491,7 @@ extern "C" {

if DUAL_PAD:
line_to_write = ("""
-#define DUAL_PAD 0xF00
+#define DUAL_PAD 0x800
""")
out_h_file.write(line_to_write)

--
2.44.0