user.h 750 Bytes
#ifndef __USER_H
#define __USER_H
#include "bsp.h"
#define FACTORYPARAMNUM 300
typedef struct
{
    unsigned long  SystemParameter[FACTORYPARAMNUM]; //200¸öϵͳ²ÎÊý
}SystemInfoStruct;

typedef union
{
    SystemInfoStruct systemInfo;  
    long buf[(sizeof(SystemInfoStruct)/4 + 1)];
}SystemInfoUnion;

extern SystemInfoUnion        sysInfoUnion;
extern void ModeSwitch(void);
extern void _ModeSwitch(void);
extern void SoftTimerProcess(void);

extern unsigned char PowerOn_ReadFlash(void);
extern void PowerOn_WriteFlash_SystemInfoBackup(void);
extern unsigned char PowerOn_ReadFlash_SystemInfoBackup(void);
extern void PowerOn_ClearFlash_SystemInfoBackup(void);
extern void initFactoryParam(void);

unsigned char PowerOn_ReadFlash(void);

#endif