nullNvRam.c
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:
VxWorks
开发平台:
C/C++
- /* nullNvRam.c - null non-volatile RAM library */
- /* Copyright 1984-1996 Wind River Systems, Inc. */
- #include "copyright_wrs.h"
- /*
- modification history
- --------------------
- 01g,25jun96,wlf doc: cleanup.
- 01f,04jun96,wlf doc: cleanup.
- 01e,24may96,wlf doc: cleanup.
- 01d,15dec92,caf reinstated version 01b.
- 01c,21oct92,ccc fixed ansi warnings.
- 01b,17jul92,caf changed nullNvram.c to nullNvRam.c.
- 01a,26jun92,caf created.
- */
- /*
- DESCRIPTION
- This library contains non-volatile RAM manipulation routines for targets
- lacking non-volatile RAM. Read and write routines that return ERROR
- are included.
- The macro NV_RAM_SIZE should be defined as NONE for targets lacking
- non-volatile RAM.
- */
- /******************************************************************************
- *
- * sysNvRamGet - get the contents of non-volatile RAM
- *
- * This routine copies the contents of non-volatile memory into a specified
- * string. The string is terminated with an EOS.
- *
- * NOTE: This routine has no effect, since there is no non-volatile RAM.
- *
- * RETURNS: ERROR, always.
- *
- * SEE ALSO: sysNvRamSet()
- */
- STATUS sysNvRamGet
- (
- char *string, /* where to copy non-volatile RAM */
- int strLen, /* maximum number of bytes to copy */
- int offset /* byte offset into non-volatile RAM */
- )
- {
- return (ERROR);
- }
- /*******************************************************************************
- *
- * sysNvRamSet - write to non-volatile RAM
- *
- * This routine copies a specified string into non-volatile RAM.
- *
- * NOTE: This routine has no effect, since there is no non-volatile RAM.
- *
- * RETURNS: ERROR, always.
- *
- * SEE ALSO: sysNvRamGet()
- */
- STATUS sysNvRamSet
- (
- char *string, /* string to be copied into non-volatile RAM */
- int strLen, /* maximum number of bytes to copy */
- int offset /* byte offset into non-volatile RAM */
- )
- {
- return (ERROR);
- }