integer.h 673 B

12345678910111213141516171819202122232425262728293031
  1. /* Integer definitions for ff, based on example code from ChaN */
  2. #ifndef _INTEGER
  3. #include <stdint.h>
  4. /* These types are assumed as 16-bit or larger integer */
  5. typedef int16_t INT;
  6. typedef uint16_t UINT;
  7. /* These types are assumed as 8-bit integer */
  8. typedef int8_t CHAR;
  9. typedef uint8_t UCHAR;
  10. typedef uint8_t BYTE;
  11. /* These types are assumed as 16-bit integer */
  12. typedef int16_t SHORT;
  13. typedef uint16_t USHORT;
  14. typedef uint16_t WORD;
  15. typedef uint16_t WCHAR;
  16. /* These types are assumed as 32-bit integer */
  17. typedef int32_t LONG;
  18. typedef uint32_t ULONG;
  19. typedef uint32_t DWORD;
  20. /* Boolean type */
  21. typedef enum { FALSE = 0, TRUE } BOOL;
  22. #define _INTEGER
  23. #endif