You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
307 B

#include "../app/app_eeprom.h"
#include "../app/app_config.h"
// 读取EEPROM中的参数到G结构体
void L3_param_read(void)
{
L0_Iap_Read_array(EEPROM_DATA_ADDR, (U8*)&G,sizeof(G));
if(G.head[0] != HEAD0 || G.head[1] != HEAD1 || G.tail[0] != TAIL0 || G.tail[1] != TAIL1)
{
L3_param_init();
}
}