Download Print this page

NETGEAR KWGR614 User Manual page 9

Opensource wireless-g router
Hide thumbs Also See for KWGR614:

Advertisement

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

Advertisement

loading