fs_os.h
上传用户:yj_qqy
上传日期:2017-01-28
资源大小:2911k
文件大小:2k
源码类别:

uCOS

开发平台:

C/C++

  1. /*
  2. **********************************************************************
  3. *                          Micrium, Inc.
  4. *                      949 Crestview Circle
  5. *                     Weston,  FL 33327-1848
  6. *
  7. *                            uC/FS
  8. *
  9. *             (c) Copyright 2001 - 2003, Micrium, Inc.
  10. *                      All rights reserved.
  11. *
  12. ***********************************************************************
  13. ----------------------------------------------------------------------
  14. File        : fs_os.h 
  15. Purpose     : File system's OS Layer header file
  16. ----------------------------------------------------------------------
  17. Known problems or limitations with current version
  18. ----------------------------------------------------------------------
  19. None.
  20. ---------------------------END-OF-HEADER------------------------------
  21. */
  22. #ifndef _FS_OS_H_
  23. #define _FS_OS_H_
  24. void     FS_X_OS_LockFileHandle(void);
  25. void     FS_X_OS_UnlockFileHandle(void);
  26. void     FS_X_OS_LockFileOp(FS_FILE *fp);
  27. void     FS_X_OS_UnlockFileOp(FS_FILE *fp);
  28. void     FS_X_OS_LockMem(void);
  29. void     FS_X_OS_UnlockMem(void);
  30. void     FS_X_OS_LockDeviceOp(const FS__device_type *driver, FS_u32 id);
  31. void     FS_X_OS_UnlockDeviceOp(const FS__device_type *driver, FS_u32 id);
  32. FS_u16   FS_X_OS_GetDate(void);
  33. FS_u16   FS_X_OS_GetTime(void);
  34. int      FS_X_OS_Init(void);
  35. int      FS_X_OS_Exit(void);
  36. #if FS_POSIX_DIR_SUPPORT
  37. void     FS_X_OS_LockDirHandle(void);
  38. void     FS_X_OS_UnlockDirHandle(void);
  39. void     FS_X_OS_LockDirOp(FS_DIR *dirp);
  40. void     FS_X_OS_UnlockDirOp(FS_DIR *dirp);
  41. #endif  /* FS_POSIX_DIR_SUPPORT */
  42. #endif    /*  _FS_OS_H_  */