wm_param.c 定義了 flash_param和sram_param兩個全局變量,數據都是來源於flash,為什麼要在內存裡保存兩份變量?
查看更多
將flash中參數加載到sram內存中。
flash_param和sram_param不都是在sram中嗎?為什麼要加載兩份?
發布 問題
分享 好友
手機 浏覽
回到 頂部
默認並未同時加載兩份呀?
最近放出來的SDK沒有宏控制,跟你們的版本不一樣:
include <string.h>
include "wm_debug.h"
include "wm_efuse.h"
include "wm_flash.h"
include "wm_internal_flash.h"
include "wm_params.h"
include "wm_param.h"
include "wm_mem.h"
include "utils.h"
include "wm_flash_map.h"
static struct tls_param_flash flash_param;
static struct tls_sys_param sram_param;
struct tls_sys_param user_default_param;
static tls_os_sem_t *sys_param_lock = NULL;
static const u8 factory_default_hardware[8] = {'H', 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
u8 updp_mode;//upadate default parameters mode, 0:not updating or up finish; 1:updating
目前我看到是官網最新SDK
wm_sdk_w800_20211203.rar
好的,謝謝