flashFsLib.h
上传用户:yuanda199
上传日期:2022-06-26
资源大小:412k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. #ifndef FLASH_FS_LIB_H
  2. #define FLASH_FS_LIB_H
  3. /*
  4.  * Support for Flash Filesystem and Flash Boot Area
  5.  * Built on top of flashDrvLib.
  6.  */
  7. STATUS flashFsLibInit(void);
  8. STATUS flashFsSync(void);
  9. #define FLASH_BOOT_START    0x000000
  10. #define FLASH_BOOT_START_SECTOR    (FLASH_BOOT_START / FLASH_SECTOR_SIZE)
  11. #define FLASH_BOOT_SIZE    (512 * 1024)
  12. #define FLASH_BOOT_SIZE_SECTORS    (FLASH_BOOT_SIZE / FLASH_SECTOR_SIZE)
  13. #define FLASH_FS_BLOCK_SIZE    512
  14. #define FLASH_FS_SIZE    (FLASH_SIZE - FLASH_BOOT_SIZE)
  15. #define FLASH_FS_SIZE_BLOCKS    (FLASH_FS_SIZE / FLASH_FS_BLOCK_SIZE)
  16. #define FLASH_FS_BLOCK_PER_SECTOR  (FLASH_SECTOR_SIZE / FLASH_FS_BLOCK_SIZE)
  17. /* #define FLASH_FS_NAME "/flash/" */
  18. #define FLASH_FS_NAME "flsh:"
  19. typedef enum {
  20.     FLASH_FS_SYNC = 0x10000
  21. } FLASH_FS_CUSTOM_IOCTL_DEFINITIONS;
  22. #endif