Просмотр исходного кода

fix:修复include文件大小写问题

CN\guohui27 2 лет назад
Родитель
Сommit
2ce3605994

+ 1 - 1
User project/3.BasicFunction/Include/can.h

@@ -22,7 +22,7 @@ Revising History (ECL of this file):
 #define CAN_H
 
 #include "typedefine.h"
-#include "gd32F30x.h"
+#include "gd32f30x.h"
 /************************************************************************
  Compiler Directives (N/A)
 *************************************************************************/

+ 3 - 4
User project/3.BasicFunction/Source/torquesensor.c

@@ -377,9 +377,8 @@ void torsensor_voOffsetUpdate(void)
             tor_pvt_uwOffsetMax = torsensor_stTorSensorOut.uwTorqueReg;
         }    
     }
-
-    ++tor_pvt_ulCnt2;     
-    if(tor_pvt_ulCnt2 > TORQUE_90S_1MSCNT)
+   
+    if(tor_pvt_ulCnt > TORQUE_90S_1MSCNT)
     {
         if(tor_pvt_uwOffsetTarget != torsensor_stTorSensorCof.uwTorqueOffset)
         {
@@ -400,7 +399,7 @@ void torsensor_voOffsetUpdate(void)
                                                 (torsensor_stTorSensorCof.uwBikeTorStep1ADC - torsensor_stTorSensorCof.uwTorqueOffset) /TORQUEBASE);
         }
 
-        tor_pvt_ulCnt2 = 0;   
+        tor_pvt_ulCnt = 0;   
     }       
 }
 /***************************************************************

+ 1 - 1
User project/4.BasicHardwSoftwLayer/2.BasicSoftwLayer/Include/user.h

@@ -512,7 +512,7 @@ Update Time
 #include "switchhall.h"
 #else
 #include <stdlib.h>
-#include "gd32F30x.h"
+#include "gd32f30x.h"
 #include "CodePara.h"
 #include "classB.h"
 #include "hwsetup.h"