aboutsummaryrefslogtreecommitdiffstats
path: root/src/hc32f460/gpio.c
diff options
context:
space:
mode:
authorMad Beggar <ggiraudon@hotmail.com>2024-03-19 16:16:42 -0400
committerGitHub <noreply@github.com>2024-03-19 16:16:42 -0400
commit235b75be3c287a9fdcde54b347734bf6a8de2ade (patch)
treede7340ab79601f48ad9574a5ab76da330abdabb6 /src/hc32f460/gpio.c
parent78a15b6d814f96dbdef6751478ff2bfbb62be046 (diff)
downloadkutter-235b75be3c287a9fdcde54b347734bf6a8de2ade.tar.gz
kutter-235b75be3c287a9fdcde54b347734bf6a8de2ade.tar.xz
kutter-235b75be3c287a9fdcde54b347734bf6a8de2ade.zip
hc32f460: Adding support for 100pin version of H32F460 (#6488)
Signed-off-by: Guillaume Giraudon <ggiraudon@prism19.com>
Diffstat (limited to 'src/hc32f460/gpio.c')
-rw-r--r--src/hc32f460/gpio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hc32f460/gpio.c b/src/hc32f460/gpio.c
index e3b98df4..a1144927 100644
--- a/src/hc32f460/gpio.c
+++ b/src/hc32f460/gpio.c
@@ -18,7 +18,8 @@
DECL_ENUMERATION_RANGE("pin", "PA0", GPIO('A', 0), 16);
DECL_ENUMERATION_RANGE("pin", "PB0", GPIO('B', 0), 16);
DECL_ENUMERATION_RANGE("pin", "PC0", GPIO('C', 0), 16);
-DECL_ENUMERATION_RANGE("pin", "PD2", GPIO('D', 2), 1);
+DECL_ENUMERATION_RANGE("pin", "PD0", GPIO('D', 0), 16);
+DECL_ENUMERATION_RANGE("pin", "PE0", GPIO('E', 0), 16);
DECL_ENUMERATION_RANGE("pin", "PH2", PortH * 16 + 2, 1); // H: special case