osal_snv_read
原型是 hal_fs_item_read
。我用的 hal_fs_item_read、hal_fs_item_write
uint8 osal_snv_read( osalSnvId_t id, osalSnvLen_t len, void* pBuf)
{
int ret;
LOG("osal_snv_read:%x\n",id);
ret = hal_fs_item_read((uint16_t)id,(uint8_t*) pBuf, (uint16_t)len,NULL);
if(ret != PPlus_SUCCESS)
{
LOG("rd_ret:%d\n",ret);
return NV_OPER_FAILED;
}
LOG_DUMP_BYTE(pBuf, len);
return SUCCESS;
}
// 从指定的文件ID读取设备名称数据
ret = hal_fs_item_read(DEVICE_NAME_FILE_ID, savedName, GAP_DEVICE_NAME_LEN, &nameLen);