aboutsummaryrefslogtreecommitdiff
path: root/ports/teensy/hal_gpio.c
diff options
context:
space:
mode:
authorDamien George2018-02-14 10:52:45 +1100
committerDamien George2018-02-14 10:52:45 +1100
commite6235fe6470b0513000cb0206079be0b9975a122 (patch)
treee6bd6233d52f438e700eb7e4ce9bbfb0df800abb /ports/teensy/hal_gpio.c
parentfa13e0d35bc6326fb87676e33a64864e47407a00 (diff)
teensy: Update GPIO speed consts to align with changes in stm32 port.
Diffstat (limited to 'ports/teensy/hal_gpio.c')
-rw-r--r--ports/teensy/hal_gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/teensy/hal_gpio.c b/ports/teensy/hal_gpio.c
index e65d03410..f9e137602 100644
--- a/ports/teensy/hal_gpio.c
+++ b/ports/teensy/hal_gpio.c
@@ -52,7 +52,7 @@ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
*port_pcr |= PORT_PCR_DSE;
/* Configure the IO Speed */
- if (GPIO_Init->Speed > GPIO_SPEED_MEDIUM) {
+ if (GPIO_Init->Speed > GPIO_SPEED_FREQ_MEDIUM) {
*port_pcr &= ~PORT_PCR_SRE;
} else {
*port_pcr |= PORT_PCR_SRE;