aboutsummaryrefslogtreecommitdiff
path: root/stm-init.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-06-13 22:38:00 -0400
committerPaul Selkirk <paul@psgd.org>2016-06-13 22:38:00 -0400
commit91db5e0c49b77c7a21a3b6d1c70b7128dcfa55a9 (patch)
tree5417350f2555f7d89bb6fa269c384bf5734a233a /stm-init.c
parentb7f9d44fe7a35c33bd6a5ee7db1cbd9a53e21ee2 (diff)
Change gpio setups from macros to inline functions.
Diffstat (limited to 'stm-init.c')
-rw-r--r--stm-init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/stm-init.c b/stm-init.c
index d2d8d65..0016e13 100644
--- a/stm-init.c
+++ b/stm-init.c
@@ -157,8 +157,6 @@ static void MX_USART2_UART_Init(void)
/* Configure General Purpose Input/Output pins */
static void MX_GPIO_Init(void)
{
- GPIO_InitTypeDef GPIO_InitStruct;
-
/* GPIO Ports Clock Enable */
LED_CLK_ENABLE();
@@ -217,7 +215,7 @@ void MX_I2C2_Init(void)
hi2c_rtc.Init.NoStretchMode = I2C_NOSTRETCH_DISABLED;
if (HAL_I2C_Init(&hi2c_rtc) != HAL_OK) {
- Error_Handler();
+ Error_Handler();
}
}
#endif