summaryrefslogtreecommitdiff
path: root/chip/stm32/config_chip.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/config_chip.h')
-rw-r--r--chip/stm32/config_chip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/config_chip.h b/chip/stm32/config_chip.h
index 4a2f686e6b..5fc0f47681 100644
--- a/chip/stm32/config_chip.h
+++ b/chip/stm32/config_chip.h
@@ -138,7 +138,7 @@
#define GPIO_NAME_BY_PIN(port, index) #port#index
#define GPIO_PIN(port, index) GPIO_##port, (1 << index)
-#define GPIO_PIN_MASK(port, mask) GPIO_##port, (mask)
+#define GPIO_PIN_MASK(p, m) .port = GPIO_##p, .mask = (m)
/* Prescaler values for PLL. Currently used only by STM32L476. */
#define STM32_PLLM 0