|
@@ -23,6 +23,7 @@
|
|
#include "torquesensor.h"
|
|
#include "torquesensor.h"
|
|
#include "user.h"
|
|
#include "user.h"
|
|
#include "FSM_2nd.h"
|
|
#include "FSM_2nd.h"
|
|
|
|
+#include "fp.def"
|
|
/******************************
|
|
/******************************
|
|
*
|
|
*
|
|
* Parameter
|
|
* Parameter
|
|
@@ -216,9 +217,15 @@ void Can_voInitMC_Run(void)
|
|
strncpy(MC_VerInfo.HW_Version, (char *)"TEST. ", 16);
|
|
strncpy(MC_VerInfo.HW_Version, (char *)"TEST. ", 16);
|
|
#endif
|
|
#endif
|
|
// Software version
|
|
// Software version
|
|
- strncpy(MC_VerInfo.FW_Version, (char *)"V0r1r9_20230607.", 16);
|
|
|
|
|
|
+ char chFwVersion[16]="V0r1r9_";
|
|
|
|
+ strncat(chFwVersion,COMMIT_TIME,9);
|
|
|
|
+ strncpy(MC_VerInfo.FW_Version, (char *)chFwVersion, 16);
|
|
|
|
+
|
|
// Firmware Special Info
|
|
// Firmware Special Info
|
|
- strncpy(Firmware_Special, (char *)"TC00000-MC00000-V0r0. ", 32);
|
|
|
|
|
|
+ char chFrimware[32]="TC00000-MC00000-V0r0. ";
|
|
|
|
+ strncat(chFrimware,FINGER_PRINT,9);
|
|
|
|
+ strncpy(Firmware_Special, (char *)chFrimware, 32);
|
|
|
|
+
|
|
// Model name
|
|
// Model name
|
|
memcpy(MC_VerInfo.Mode, flash_stPara.ubMotorVersion, sizeof(flash_stPara.ubMotorVersion));
|
|
memcpy(MC_VerInfo.Mode, flash_stPara.ubMotorVersion, sizeof(flash_stPara.ubMotorVersion));
|
|
// SN
|
|
// SN
|