|
调gsensor需要将offset值的存到nvram里 看了下factory的代码
else if((err = gsensor_calibration[/COLOR](gsc->fd, dat->gsc.cali_delay, dat->gsc.cali_num,
dat->gsc.cali_tolerance, 0, &cali)) != 0)
{
GSCLOGE("calibrate acc: %d\n", err);
}
else if((err = gsensor_set_cali[/COLOR](gsc->fd, &cali)) != 0)
{
GSCLOGE("set calibration fail: (%s) %d\n", strerror(errno), err);
}
else if((err = gsensor_get_cali[/COLOR](gsc->fd, &cali)) != 0)
{
GSCLOGE("get calibration fail: (%s) %d\n", strerror(errno), err);
}
else if((err = gsensor_write_nvram[/COLOR](&cali)) != 0)
{
GSCLOGE("write nvram fail: (%s) %d\n", strerror(errno), err);
}
但是gsensor_write_nvram这些函数都在哪里进行定义的?找遍整包代码都找不到 请高手指点 |
|