⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eeprom.h

📁 Freescale mpc834x 的VxWorks平台的BSP源代码。
💻 H
字号:
/* eeprom.h - EEPROM NVRAM haeder file *//* * Copyright (c) 2005 Wind River Systems, Inc. * * The right to copy, distribute, modify or otherwise make use * of this software may be licensed only pursuant to the terms * of an applicable Wind River license agreement. *//*modification history--------------------01a,23jun05,j_b  adapted from wrPpmc8260 (rev 01b)*//*DESCRIPTIONThis file contains routines prototypes to access the EEPROM NVRAM device.SEE ALSO:.pG "Configuration"*/#ifndef	__INCeepromh#define	__INCeepromh#ifdef __cplusplusextern "C" {#endif/* includes */#include <vxWorks.h>#include <memLib.h>/* defines */#define NV_WR_CYCLE_TIME    1 /* EEPROM write cycle time (ms) */#define RETRY_NVWRITE_COUNT 5 /* max wait iterations before write abort */#undef NV_RAM_WR_ENBL       /* write enable procedure */#define NV_RAM_WR_ENBL      eepromUnlock()#undef NV_RAM_WR_DSBL       /* write disable procedure */#define NV_RAM_WR_DSBL      eepromLock()#undef  NV_RAM_WRITE        /* write procedure */#define NV_RAM_WRITE        eepromWriteByte#undef  NV_RAM_READ         /* read procedure */#define NV_RAM_READ         eepromReadByte/* function prototypes */void   eepromNvRamSetup (void);UINT8  eepromReadByte (int offset);STATUS eepromWriteByte (int offset, UINT8 data);void   eepromLock (void);void   eepromUnlock (void);#ifdef __cplusplus}#endif#endif	/* __INCeepromh */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -