EasyManua.ls Logo

NETGEAR KWGR614 - Page 9

NETGEAR KWGR614
14 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5. Declare an instance of the parameter for runtime memory use.
user/boa/src/dni/board.c
6. Define default values for the parameter.
user/boa/src/dni/board.c
7. Define the initialization function.
user/boa/src/dni/board.c
// nvram example
exampleParam_t exampleParamDefault[1] =
{
{
"What is the meaning of life, the universe, and
everything?",
42
}
};
exampleParam_t ramExampleParam; //nvram example
uint32 example_init(void)
{
/* read cfg from cfgmgr */
if (cfgmgr_read(CFGMGR_TABID_EXAMPLE, \
(void*)&(pRomeCfgParam->exampleParam), \
sizeof(struct exampleParam_t))!=0)
{
printf("example_init: call cfgmgr_read fail\n");
/* take proper actions */
return NOT_OK;
}
//printf("example_init\n");
return OK;
} /* end example_init */

Other manuals for NETGEAR KWGR614

Related product manuals