summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-07-04 17:46:14 +0800
committerGitHub <[email protected]>2019-07-04 17:46:14 +0800
commit789326a84236317832519bb6bf4370cc838fcf02 (patch)
treef965e765629997e6e0169ff2e6a7fbae2eeeb8e3
parentadd40377647accc2f7c1332585043a0337e09957 (diff)
parent611886e709ec9e4f8c00e63aee04702dcd03fb4b (diff)
Merge pull request #2830 from tyustli/patch-4
Update tim_config.h
-rw-r--r--bsp/stm32/libraries/HAL_Drivers/config/f2/tim_config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f2/tim_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f2/tim_config.h
index f6169caff4..a5b47af3a6 100644
--- a/bsp/stm32/libraries/HAL_Drivers/config/f2/tim_config.h
+++ b/bsp/stm32/libraries/HAL_Drivers/config/f2/tim_config.h
@@ -72,15 +72,15 @@ extern "C" {
#endif /* BSP_USING_TIM5 */
#ifdef BSP_USING_TIM7
-#ifndef TIM5_CONFIG
-#define TIM5_CONFIG \
+#ifndef TIM7_CONFIG
+#define TIM7_CONFIG \
{ \
.tim_handle.Instance = TIM7, \
.tim_irqn = TIM7_IRQn, \
.name = "timer7", \
}
#endif /* TIM7_CONFIG */
-#endif /* BSP_USING_TIM5 */
+#endif /* BSP_USING_TIM7 */
#ifdef __cplusplus
}