From 0851751615580d02bd6f841e13651923f05fde59 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 3 Aug 2015 00:05:16 +0100 Subject: 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. --- teensy/teensy_hal.c | 3 +++ teensy/teensy_hal.h | 2 ++ 2 files changed, 5 insertions(+) (limited to 'teensy') diff --git a/teensy/teensy_hal.c b/teensy/teensy_hal.c index 312aca058..bc117aef4 100644 --- a/teensy/teensy_hal.c +++ b/teensy/teensy_hal.c @@ -55,3 +55,6 @@ void mp_hal_stdout_tx_strn_cooked(const char *str, uint32_t len) { usb_vcp_send_strn_cooked(str, len); } } + +void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio) { +} diff --git a/teensy/teensy_hal.h b/teensy/teensy_hal.h index f5c6d18d7..5874be348 100644 --- a/teensy/teensy_hal.h +++ b/teensy/teensy_hal.h @@ -116,6 +116,8 @@ uint32_t HAL_GetTick(void); void HAL_Delay(uint32_t Delay); void mp_hal_set_interrupt_char(int c); +void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio); + int mp_hal_stdin_rx_chr(void); void mp_hal_stdout_tx_str(const char *str); void mp_hal_stdout_tx_strn(const char *str, uint32_t len); -- cgit v1.2.3