aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/l1/gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libopencm3/stm32/l1/gpio.h')
-rw-r--r--include/libopencm3/stm32/l1/gpio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libopencm3/stm32/l1/gpio.h b/include/libopencm3/stm32/l1/gpio.h
index 76325a9..a39c9f6 100644
--- a/include/libopencm3/stm32/l1/gpio.h
+++ b/include/libopencm3/stm32/l1/gpio.h
@@ -152,7 +152,7 @@
#define GPIO_MODE_MASK(n) (0x3 << (2 * (n)))
#define GPIO_MODE_INPUT 0x00 /* Default */
#define GPIO_MODE_OUTPUT 0x01
-#define GPIO_MODE_ALTFN 0x02
+#define GPIO_MODE_AF 0x02
#define GPIO_MODE_ANALOG 0x03
/* --- GPIOx_OTYPER values -------------------------------------------- */