初始提交

This commit is contained in:
2026-08-24 15:49:57 +08:00
commit 4569284de2
181 changed files with 246421 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef PARAM_H
#define PARAM_H
#include "main.h"
#pragma pack(1)
typedef struct __sysParamDef
{
uint16_t usAdcPeriod; ///< 定时采样周期 微秒
uint16_t usAdcinterval; ///< 定距采样间隔 微米
uint8_t ucUseEncoder; ///< 启用编码器
uint8_t ucAverageCount; ///< 平均次数
} sysParamDef;
typedef struct __sysOtpInfoDef
{
char aucModel[32];
char aucDate[32];
char aucSn[32];
} sysOtpInfoDef;
#pragma pack()
extern sysParamDef *gptSysParam;
int loadSysParam(void);
void saveSysParam(void);
const sysOtpInfoDef *loadOtpInfo(void);
int saveOtpInfo(const sysOtpInfoDef *otpInfo);
void systemResetFactory(void);
#endif // PARAM_H