Std_Types.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * @Author : ChenJie
  3. * @Date : 2021-11-24 14:01:24
  4. * @Version : V3.0
  5. * @LastEditors : ChenJie
  6. * @LastEditTime : 2021-12-28 09:56:10
  7. * @Description : file content
  8. * @FilePath : \VehicleControl\VehicleControl\src\Global\Std_Types.h
  9. */
  10. /********************************************************************************
  11. * 常州易控汽车电子股份有限公司
  12. * (c) Copyright 2009-2015 ECTEK
  13. * 保留所有权利
  14. ********************************************************************************
  15. * 工程名称:全局定义
  16. * 文件名: Std_Types.h
  17. * 功能描述 : 基本类型定义及全局宏定义头文件
  18. * 引用记录:该文件被各个.h文件包含
  19. * 备注:
  20. * 修订记录:
  21. * 日期 版本 作者 描述
  22. * 2009.02.22 00.01.00 方成 第一版
  23. *******************************************************************************/
  24. #ifndef __TYPEDEF_H
  25. #define __TYPEDEF_H
  26. #include "SysConf.h"
  27. /*******************************************************************************************
  28. 基本变量类型定义
  29. ********************************************************************************************/
  30. typedef unsigned char boolean;
  31. typedef signed char sint8;
  32. typedef unsigned char uint8;
  33. typedef signed short sint16;
  34. typedef unsigned short uint16;
  35. typedef signed long sint32;
  36. typedef unsigned long uint32;
  37. typedef unsigned long uint8_least;
  38. typedef unsigned long uint16_least;
  39. typedef unsigned long uint32_least;
  40. typedef signed long sint8_least;
  41. typedef signed long sint16_least;
  42. typedef signed long sint32_least;
  43. typedef float float32;
  44. typedef double float64;
  45. typedef unsigned char UINT8;
  46. typedef unsigned short UINT16;
  47. typedef unsigned long UINT32;
  48. typedef unsigned char BOOL;
  49. typedef signed char INT8;
  50. typedef signed short INT16;
  51. typedef signed long INT32;
  52. #ifndef NULL
  53. #define NULL (0)
  54. #endif
  55. #ifndef NULL_PTR
  56. #define NULL_PTR ((void *)0)
  57. #endif
  58. #ifndef TRUE
  59. #define TRUE 1
  60. #endif
  61. #ifndef FALSE
  62. #define FALSE 0
  63. #endif
  64. #endif