integer.h 799 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*-------------------------------------------*/
  2. /* Integer type definitions for FatFs module */
  3. /*-------------------------------------------*/
  4. #ifndef _FF_INTEGER
  5. #define _FF_INTEGER
  6. #ifdef _WIN32 /* FatFs development platform */
  7. #include <windows.h>
  8. #include <tchar.h>
  9. typedef unsigned __int64 QWORD;
  10. #else /* Embedded platform */
  11. #include <stdint.h>
  12. /* These types MUST be 16-bit or 32-bit */
  13. typedef int16_t INT;
  14. typedef uint16_t UINT;
  15. /* This type MUST be 8-bit */
  16. typedef uint8_t BYTE;
  17. /* These types MUST be 16-bit */
  18. typedef int16_t SHORT;
  19. typedef uint16_t WORD;
  20. typedef uint16_t WCHAR;
  21. /* These types MUST be 32-bit */
  22. typedef int32_t LONG;
  23. typedef uint32_t DWORD;
  24. /* This type MUST be 64-bit (Remove this for ANSI C (C89) compatibility) */
  25. typedef uint64_t QWORD;
  26. #endif
  27. #endif