integer.h 820 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*-------------------------------------------*/
  2. /* Integer type definitions for FatFs module */
  3. /*-------------------------------------------*/
  4. #ifndef _INTEGER
  5. #define _INTEGER
  6. #ifdef _WIN32 /* FatFs development platform */
  7. #include <windows.h>
  8. #include <tchar.h>
  9. #else /* Embedded platform */
  10. /* These types must be 16-bit, 32-bit or larger integer */
  11. typedef int INT;
  12. typedef unsigned int UINT;
  13. /* These types must be 8-bit integer */
  14. typedef char CHAR;
  15. typedef unsigned char UCHAR;
  16. typedef unsigned char BYTE;
  17. /* These types must be 16-bit integer */
  18. typedef short SHORT;
  19. typedef unsigned short USHORT;
  20. typedef unsigned short WORD;
  21. typedef unsigned short WCHAR;
  22. /* These types must be 32-bit integer */
  23. typedef long LONG;
  24. typedef unsigned long ULONG;
  25. typedef unsigned long DWORD;
  26. #endif
  27. #endif