integer.h 706 B

123456789101112131415161718192021222324252627282930313233
  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. #else /* Embedded platform */
  10. /* This type MUST be 8 bit */
  11. typedef unsigned char BYTE;
  12. /* These types MUST be 16 bit */
  13. typedef short SHORT;
  14. typedef unsigned short WORD;
  15. typedef unsigned short WCHAR;
  16. /* These types MUST be 16 bit or 32 bit */
  17. typedef int INT;
  18. typedef unsigned int UINT;
  19. /* These types MUST be 32 bit */
  20. typedef long LONG;
  21. typedef unsigned long DWORD;
  22. #endif
  23. #endif