aboutsummaryrefslogtreecommitdiff
path: root/stm-init.h
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-08-31 17:38:05 -0400
committerPaul Selkirk <paul@psgd.org>2017-08-31 17:38:05 -0400
commitceee42024b728a878063548ea245c47a951be29f (patch)
treee829a832c66faf6f63927ab9fe1d2980e81a349e /stm-init.h
parentd283110c051fbd20792bedb7bd67239e30c2a29a (diff)
Cleanup
Diffstat (limited to 'stm-init.h')
-rw-r--r--stm-init.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stm-init.h b/stm-init.h
index 2c3ec99..ff1c4c2 100644
--- a/stm-init.h
+++ b/stm-init.h
@@ -39,7 +39,7 @@
/* Functions used to make GPIO pin setup (in stm-init.c) easier */
-inline void gpio_output(GPIO_TypeDef* output_port, uint16_t output_pins, GPIO_PinState output_level)
+static inline void gpio_output(GPIO_TypeDef* output_port, uint16_t output_pins, GPIO_PinState output_level)
{
GPIO_InitTypeDef GPIO_InitStruct;
@@ -54,7 +54,7 @@ inline void gpio_output(GPIO_TypeDef* output_port, uint16_t output_pins, GPIO_Pi
HAL_GPIO_Init(output_port, &GPIO_InitStruct);
}
-inline void gpio_input(GPIO_TypeDef* input_port, uint16_t input_pin, GPIO_PinState input_pull)
+static inline void gpio_input(GPIO_TypeDef* input_port, uint16_t input_pin, GPIO_PinState input_pull)
{
GPIO_InitTypeDef GPIO_InitStruct;