Save User Params Question
Posted: Tue May 12, 2009 8:42 am
NB gives us an example of how to save user paramters to flash.
it works well, however i need to declare it globally. i have other included files that i would like to access *pData. i have tried and googled but not having much luck in doing so.
Below is the code snipped from that exmple. I just need to access *pData from another *.cpp file.
it works well, however i need to declare it globally. i have other included files that i would like to access *pData. i have tried and googled but not having much luck in doing so.
Below is the code snipped from that exmple. I just need to access *pData from another *.cpp file.
Code: Select all
struct NV_SettingsStruct
{
DWORD VerifyKey;
WORD nvWord;
char nvChar;
BYTE nvByte;
};
NV_SettingsStruct NV_Settings;
NV_SettingsStruct *pData = ( NV_SettingsStruct * ) GetUserParameters();