浏览代码

Merge pull request #2830 from tyustli/patch-4

Update tim_config.h
Bernard Xiong 6 年之前
父节点
当前提交
789326a842
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      bsp/stm32/libraries/HAL_Drivers/config/f2/tim_config.h

+ 3 - 3
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
 }