aboutsummaryrefslogtreecommitdiff
path: root/stmhal/mphal.h
diff options
context:
space:
mode:
authorDamien George2015-08-03 00:05:16 +0100
committerDamien George2015-08-03 00:14:48 +0100
commit0851751615580d02bd6f841e13651923f05fde59 (patch)
tree28b788def0d7a128b57512a923a84657d65d11be /stmhal/mphal.h
parent6f1c00869c761ff84b21939a057d7752e0c01be9 (diff)
stmhal: Factor GPIO clock enable logic into mp_hal_gpio_clock_enable.
Extracted GPIO clock enable logic into mp_hal_gpio_clock_enable and called from anyplace which might need to use GPIO functions on ports other than A-D. Thanks to Dave Hylands for the patch.
Diffstat (limited to 'stmhal/mphal.h')
-rw-r--r--stmhal/mphal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/mphal.h b/stmhal/mphal.h
index d6ccba7ce..86cf08a2f 100644
--- a/stmhal/mphal.h
+++ b/stmhal/mphal.h
@@ -12,6 +12,8 @@
#endif
#define GPIO_read_output_pin(gpio, pin) (((gpio)->ODR >> (pin)) & 1)
+void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio);
+
extern const byte mp_hal_status_to_errno_table[4];
NORETURN void mp_hal_raise(HAL_StatusTypeDef status);