浏览代码

[append]

pull/1/head
huangyulong 2 年前
父节点
当前提交
9c8c5bc00e
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2
    3
      Core/Src/stm32f1xx_it.c

+ 2
- 3
Core/Src/stm32f1xx_it.c 查看文件

@@ -83,8 +83,7 @@ void NMI_Handler(void)
83 83
 /**
84 84
   * @brief This function handles Hard fault interrupt.
85 85
   */
86
-#if 0
87
-void HardFault_Handler(void)
86
+__WEAK void HardFault_Handler(void)
88 87
 {
89 88
   /* USER CODE BEGIN HardFault_IRQn 0 */
90 89
 
@@ -95,7 +94,7 @@ void HardFault_Handler(void)
95 94
     /* USER CODE END W1_HardFault_IRQn 0 */
96 95
   }
97 96
 }
98
-#endif
97
+
99 98
 /**
100 99
   * @brief This function handles Memory management fault.
101 100
   */

正在加载...
取消
保存