typedefs.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /**************************************************************************
  2. * FILE NAME: $RCSfile: typedefs.h,v $ COPYRIGHT (c) Freescale 2005 *
  3. * DESCRIPTION: All Rights Reserved *
  4. * This file defines all of the data types for the Motorola header file. *
  5. *========================================================================*
  6. * ORIGINAL AUTHOR: Jeff Loeliger (r12110) *
  7. * $Log: typedefs.h,v $
  8. * Revision 1.1 2010/07/21 13:28:05 dmihail1
  9. * Add to DataBase: 'runtime' folder
  10. * See: MTWX40737, MTWX40738, MTWX40743, MTWX42016
  11. *
  12. * Revision 1.7 2007/05/02 22:46:00 dfreeland
  13. * Use latest web version
  14. *
  15. * Revision 1.4 2006/03/27 09:59:34 r47354
  16. * change __GHS__ to __ghs__. As per bug 13213
  17. *
  18. * Revision 1.3 2005/02/22 13:09:38 r47354
  19. * Fix copyright date.
  20. *
  21. * Revision 1.2 2004/11/17 12:43:12 r12110
  22. * -Removed #ifdef DEBUG from around initial comment block.
  23. *
  24. * Revision 1.1 2004/11/17 12:38:48 r12110
  25. * -Initial version checked into CVS.
  26. * -Updated copyright from Motorola to Freescale.
  27. *
  28. *........................................................................*
  29. * 0.1 J. Loeliger 17/Feb/03 Initial version of file. *
  30. * 0.2 J. Loeliger 06/Mar/03 Added DCC support. *
  31. * 0.3 J. Loeliger 07/May/03 Change to fully use ISO data types. *
  32. * 0.4 J. Loeliger 17/Jun/03 Change name to motint.h and merge *
  33. * MPC5500 and MAC7100 files. *
  34. * 0.5 J. Loeliger 04/Nov/03 Changed name to typedefs.h. *
  35. * 0.6 J. Loeliger 09/May/04 Changed to support GHS and GCC. *
  36. **************************************************************************/
  37. #ifndef _TYPEDEFS_H_
  38. #define _TYPEDEFS_H_
  39. #ifdef __MWERKS__ //Metrowerk CodeWarrior
  40. #include <stdint.h>
  41. // Standard typedefs used by header files, based on ISO C standard
  42. typedef volatile int8_t vint8_t;
  43. typedef volatile uint8_t vuint8_t;
  44. typedef volatile int16_t vint16_t;
  45. typedef volatile uint16_t vuint16_t;
  46. typedef volatile int32_t vint32_t;
  47. typedef volatile uint32_t vuint32_t;
  48. #else
  49. #ifdef __ghs__ //GreenHills
  50. #include <stdint.h>
  51. // Standard typedefs used by header files, based on ISO C standard
  52. typedef volatile int8_t vint8_t;
  53. typedef volatile uint8_t vuint8_t;
  54. typedef volatile int16_t vint16_t;
  55. typedef volatile uint16_t vuint16_t;
  56. typedef volatile int32_t vint32_t;
  57. typedef volatile uint32_t vuint32_t;
  58. #else
  59. // This is needed for compilers that don't have a stdint.h file
  60. typedef signed char int8_t;
  61. typedef unsigned char uint8_t;
  62. typedef volatile signed char vint8_t;
  63. typedef volatile unsigned char vuint8_t;
  64. typedef signed short int16_t;
  65. typedef unsigned short uint16_t;
  66. typedef volatile signed short vint16_t;
  67. typedef volatile unsigned short vuint16_t;
  68. typedef signed int int32_t;
  69. typedef unsigned int uint32_t;
  70. typedef volatile signed int vint32_t;
  71. typedef volatile unsigned int vuint32_t;
  72. typedef signed long long int64_t;
  73. typedef unsigned long long uint64_t;
  74. typedef volatile signed long long vint64_t;
  75. typedef volatile unsigned long long vuint64_t;
  76. #endif
  77. #endif
  78. #endif
  79. /*********************************************************************
  80. *
  81. * Copyright:
  82. * Freescale Semiconductor, INC. All Rights Reserved.
  83. * You are hereby granted a copyright license to use, modify, and
  84. * distribute the SOFTWARE so long as this entire notice is
  85. * retained without alteration in any modified and/or redistributed
  86. * versions, and that such modified versions are clearly identified
  87. * as such. No licenses are granted by implication, estoppel or
  88. * otherwise under any patents or trademarks of Freescale
  89. * Semiconductor, Inc. This software is provided on an "AS IS"
  90. * basis and without warranty.
  91. *
  92. * To the maximum extent permitted by applicable law, Freescale
  93. * Semiconductor DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED,
  94. * INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
  95. * PARTICULAR PURPOSE AND ANY WARRANTY AGAINST INFRINGEMENT WITH
  96. * REGARD TO THE SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF)
  97. * AND ANY ACCOMPANYING WRITTEN MATERIALS.
  98. *
  99. * To the maximum extent permitted by applicable law, IN NO EVENT
  100. * SHALL Freescale Semiconductor BE LIABLE FOR ANY DAMAGES WHATSOEVER
  101. * (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS,
  102. * BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR OTHER
  103. * PECUNIARY LOSS) ARISING OF THE USE OR INABILITY TO USE THE SOFTWARE.
  104. *
  105. * Freescale Semiconductor assumes no responsibility for the
  106. * maintenance and support of this software
  107. *
  108. ********************************************************************/