flashutil.h

来自「vxworks的BSP开发配置文件」· C头文件 代码 · 共 55 行

H
55
字号
/* flashUtil.h - Defines some constants and prototypes for flash utility *//* Copyright 1999 Intel Corp. *//*modification history--------------------01b,10jul02,scm  add C++ protection...01a,09jul99,jdg  created*//* * This module contains the constants and prototypes for generic * flash utility functions. These should be OS independent. */#ifndef INCflashUtilh#define INCflashUtilh#ifdef __cplusplusextern "C" {#endif#if     (FLASH_WIDTH == 1)#define FLASH_TYPE       UINT8#endif  /* FLASH_WIDTH */#if     (FLASH_WIDTH == 2)#define FLASH_TYPE       UINT16#endif  /* FLASH_WIDTH */#if     (FLASH_WIDTH == 4)#define FLASH_TYPE       UINT32#endif  /* FLASH_WIDTH */#define FTYPE_NONE 0UINT8 flashTypeGet (UINT32 flash_offset);STATUS flashErase (UINT32 flash_offset);STATUS flashWrite    (    FLASH_TYPE * pFB,		/* string to be copied; use <value> if NULL */    int size,			    /* size to program in bytes */    int flash_offset,		/* byte offset into flash memory */    FLASH_TYPE value		/* value to program */    );STATUS flashNextBlock (UINT32 *flash_offset);#ifdef __cplusplus}#endif#endif INCflashUtilh

⌨️ 快捷键说明

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