types.h 399 B

123456789101112131415161718192021222324
  1. #ifndef __TYPES_H__
  2. #define __TYPES_H__
  3. #include <rtthread.h>
  4. typedef rt_off_t off_t;
  5. typedef rt_size_t size_t;
  6. typedef rt_uint8_t u_char;
  7. typedef rt_uint16_t u_short;
  8. typedef rt_ubase_t u_int;
  9. typedef rt_uint32_t u_long;
  10. typedef rt_uint8_t u_int8_t;
  11. typedef rt_uint16_t u_int16_t;
  12. typedef rt_uint32_t u_int32_t;
  13. typedef rt_time_t time_t;
  14. #ifndef NULL
  15. #define NULL RT_NULL
  16. #endif
  17. #endif