Skip to content

Commit c1da0f4

Browse files
committed
Use AHB variants of GPIO by default on 123x.
1 parent e2f2ebc commit c1da0f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tm4c123x-hal/src/gpio.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub trait GpioExt {
4949
fn split(self, power_control: &sysctl::PowerControl) -> Self::Parts;
5050
}
5151

52-
gpio_macro!(tm4c123x, GPIO_PORTA, gpioa, GpioA, PAx, [
52+
gpio_macro!(tm4c123x, GPIO_PORTA_AHB, gpioa, GpioA, PAx, [
5353
PA0: (pa0, 0, Tristate),
5454
PA1: (pa1, 1, Tristate),
5555
PA2: (pa2, 2, Tristate),
@@ -60,7 +60,7 @@ gpio_macro!(tm4c123x, GPIO_PORTA, gpioa, GpioA, PAx, [
6060
PA7: (pa7, 7, Tristate),
6161
]);
6262

63-
gpio_macro!(tm4c123x, GPIO_PORTB, gpiob, GpioB, PBx, [
63+
gpio_macro!(tm4c123x, GPIO_PORTB_AHB, gpiob, GpioB, PBx, [
6464
PB0: (pb0, 0, Tristate),
6565
PB1: (pb1, 1, Tristate),
6666
PB2: (pb2, 2, Tristate),
@@ -71,7 +71,7 @@ gpio_macro!(tm4c123x, GPIO_PORTB, gpiob, GpioB, PBx, [
7171
PB7: (pb7, 7, Tristate),
7272
]);
7373

74-
gpio_macro!(tm4c123x, GPIO_PORTC, gpioc, GpioC, PCx, [
74+
gpio_macro!(tm4c123x, GPIO_PORTC_AHB, gpioc, GpioC, PCx, [
7575
PC0: (pc0, 0, Locked), // JTAG/SWD pin
7676
PC1: (pc1, 1, Locked), // JTAG/SWD pin
7777
PC2: (pc2, 2, Locked), // JTAG/SWD pin
@@ -82,7 +82,7 @@ gpio_macro!(tm4c123x, GPIO_PORTC, gpioc, GpioC, PCx, [
8282
PC7: (pc7, 7, Tristate),
8383
]);
8484

85-
gpio_macro!(tm4c123x, GPIO_PORTD, gpiod, GpioD, PDx, [
85+
gpio_macro!(tm4c123x, GPIO_PORTD_AHB, gpiod, GpioD, PDx, [
8686
PD0: (pd0, 0, Tristate),
8787
PD1: (pd1, 1, Tristate),
8888
PD2: (pd2, 2, Tristate),
@@ -93,7 +93,7 @@ gpio_macro!(tm4c123x, GPIO_PORTD, gpiod, GpioD, PDx, [
9393
PD7: (pd7, 7, Locked), // NMI pin
9494
]);
9595

96-
gpio_macro!(tm4c123x, GPIO_PORTE, gpioe, GpioE, PEx, [
96+
gpio_macro!(tm4c123x, GPIO_PORTE_AHB, gpioe, GpioE, PEx, [
9797
PE0: (pe0, 0, Tristate),
9898
PE1: (pe1, 1, Tristate),
9999
PE2: (pe2, 2, Tristate),
@@ -104,7 +104,7 @@ gpio_macro!(tm4c123x, GPIO_PORTE, gpioe, GpioE, PEx, [
104104
PE7: (pe7, 7, Tristate),
105105
]);
106106

107-
gpio_macro!(tm4c123x, GPIO_PORTF, gpiof, GpioF, PFx, [
107+
gpio_macro!(tm4c123x, GPIO_PORTF_AHB, gpiof, GpioF, PFx, [
108108
PF0: (pf0, 0, Locked), // NMI pin
109109
PF1: (pf1, 1, Tristate),
110110
PF2: (pf2, 2, Tristate),

0 commit comments

Comments
 (0)