Forráskód Böngészése

fix:函数startup关闭中断

CN\guohui27 2 éve
szülő
commit
65c336148b
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      MSTLibraries/SelfTestLib/src/STLstartup.c

+ 1 - 1
MSTLibraries/SelfTestLib/src/STLstartup.c

@@ -140,7 +140,7 @@ void FailSafePOR(void)
  void STL_StartUp(void)
 {
 #if CHIP_FAULT_DETECTION == 1
-
+    __disable_irq();
     /*----------------------------------------------------------------------*/
     /*---------------------------- CPU registers ---------------------------*/
     /*----------------------------------------------------------------------*/