TI中文支持网
TI专业的中文技术问题搜集分享网站

关于 NV_INIT 和 NV_RESTORE 的区别

对于 NV_INIT 与 NV_RESTORE 的区别,网上都是一句话带过,想问问具体一点的区别,一直没能理解。网上都说两个一起开启,但是只开 NV_RESTORE 好像也没有问题。

Alvin Chen:

NV_INIT是可以使用NV的条目
NV_RESTORE是读取NV里面网络信息然后恢复网络。

yong zhou3:

回复 Alvin Chen:

那开不开 NV_INIT 有什么区别啊?

Alvin Chen:

回复 yong zhou3:

从杯子里面喝水, 没杯子怎么喝呢?

Viki Shi:

NV_INIT enables the storage of global variables that are used by the z-stack in NV (See ZGlobals.c for a list of these NV items).
NV_RESTORE is used by the stack to store and restore the associated device list, binding table, group table, application link key (for pro security).
These items are typically dynamically manipulated by the stack and aren't initialized only once like the items in NV_INIT which only occur at startup.

These two compile options are mutually exclusive. If using the location sample app, NV_RESTORE is also used to bring back the X-Y coordinate. In my
mind it would have been better to use a different compile option for the location coordinates such as LOC_RESTORE or something.

yong zhou3:

回复 Alvin Chen:

意思时 NV_INIT 必须开启吗

Alvin Chen:

回复 yong zhou3:

yong zhou3:

回复 Alvin Chen:

好的, 我试试

赞(0)
未经允许不得转载:TI中文支持网 » 关于 NV_INIT 和 NV_RESTORE 的区别
分享到: 更多 (0)