Skip to content

Commit ada3037

Browse files
authored
Fix wrong registers being used in gpiod/gpioe
1 parent bf14d7b commit ada3037

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gpio.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ gpio!(GPIOC, gpioc, gpioc, gpiocen, gpiocrst, PCx, [
554554
PC15: (pc15, 15, Input<Floating>, AFRH),
555555
]);
556556

557-
gpio!(GPIOD, gpiod, gpioc, gpioden, gpiodrst, PDx, [
557+
gpio!(GPIOD, gpiod, gpiod, gpioden, gpiodrst, PDx, [
558558
PD0: (pd0, 0, Input<Floating>, AFRL),
559559
PD1: (pd1, 1, Input<Floating>, AFRL),
560560
PD2: (pd2, 2, Input<Floating>, AFRL),
@@ -573,7 +573,7 @@ gpio!(GPIOD, gpiod, gpioc, gpioden, gpiodrst, PDx, [
573573
PD15: (pd15, 15, Input<Floating>, AFRH),
574574
]);
575575

576-
gpio!(GPIOE, gpioe, gpioc, gpioeen, gpioerst, PEx, [
576+
gpio!(GPIOE, gpioe, gpioe, gpioeen, gpioerst, PEx, [
577577
PE0: (pe0, 0, Input<Floating>, AFRL),
578578
PE1: (pe1, 1, Input<Floating>, AFRL),
579579
PE2: (pe2, 2, Input<Floating>, AFRL),

0 commit comments

Comments
 (0)