Advertisement
ifinox

Untitled

Nov 17th, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.68 KB | None | 0 0
  1. #if defined(__DOXYGEN__)
  2.  
  3. /* doxygen gets confused by the __attribute__ stuff */
  4.  
  5. /** \name Exact-width integer types
  6.     Integer types having exactly the specified width */
  7.  
  8. /*@{*/
  9.  
  10. /** \ingroup avr_stdint
  11.     8-bit signed type. */
  12.  
  13. typedef signed char int8_t;
  14.  
  15. /** \ingroup avr_stdint
  16.     8-bit unsigned type. */
  17.  
  18. typedef unsigned char uint8_t;
  19.  
  20. /** \ingroup avr_stdint
  21.     16-bit signed type. */
  22.  
  23. typedef signed int int16_t;
  24.  
  25. /** \ingroup avr_stdint
  26.     16-bit unsigned type. */
  27.  
  28. typedef unsigned int uint16_t;
  29.  
  30. /** \ingroup avr_stdint
  31.     32-bit signed type. */
  32.  
  33. typedef signed long int int32_t;
  34.  
  35. /** \ingroup avr_stdint
  36.     32-bit unsigned type. */
  37.  
  38. typedef unsigned long int uint32_t;
  39.  
  40. /** \ingroup avr_stdint
  41.     64-bit signed type.
  42.     \note This type is not available when the compiler
  43.     option -mint8 is in effect. */
  44.  
  45. typedef signed long long int int64_t;
  46.  
  47. /** \ingroup avr_stdint
  48.     64-bit unsigned type.
  49.     \note This type is not available when the compiler
  50.     option -mint8 is in effect. */
  51.  
  52. typedef unsigned long long int uint64_t;
  53.  
  54. /*@}*/
  55.  
  56. #else /* !defined(__DOXYGEN__) */
  57.  
  58. /* actual implementation goes here */
  59.  
  60. typedef int int8_t __attribute__((__mode__(__QI__)));
  61. typedef unsigned int uint8_t __attribute__((__mode__(__QI__)));
  62. typedef int int16_t __attribute__ ((__mode__ (__HI__)));
  63. typedef unsigned int uint16_t __attribute__ ((__mode__ (__HI__)));
  64. typedef int int32_t __attribute__ ((__mode__ (__SI__)));
  65. typedef unsigned int uint32_t __attribute__ ((__mode__ (__SI__)));
  66. #if !__USING_MINT8
  67. typedef int int64_t __attribute__((__mode__(__DI__)));
  68. typedef unsigned int uint64_t __attribute__((__mode__(__DI__)));
  69. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement