ST库函数中关于变量的定义的说明

[复制链接]
1370|4
 楼主| sunmeat 发表于 2014-9-25 09:44 | 显示全部楼层 |阅读模式
本帖最后由 sunmeat 于 2014-9-25 09:54 编辑

ST中关于变量的定义都在一个独立的stdint.h中,关于变量的定义如下
  1.     /* exact-width signed integer types */
  2. typedef   signed          char int8_t;
  3. typedef   signed short     int int16_t;
  4. typedef   signed           int int32_t;
  5. typedef   signed       __int64 int64_t;

  6.     /* exact-width unsigned integer types */
  7. typedef unsigned          char uint8_t;
  8. typedef unsigned short     int uint16_t;
  9. typedef unsigned           int uint32_t;
  10. typedef unsigned       __int64 uint64_t;

  11.     /* 7.18.1.2 */

  12.     /* smallest type of at least n bits */
  13.     /* minimum-width signed integer types */
  14. typedef   signed          char int_least8_t;
  15. typedef   signed short     int int_least16_t;
  16. typedef   signed           int int_least32_t;
  17. typedef   signed       __int64 int_least64_t;

  18.     /* minimum-width unsigned integer types */
  19. typedef unsigned          char uint_least8_t;
  20. typedef unsigned short     int uint_least16_t;
  21. typedef unsigned           int uint_least32_t;
  22. typedef unsigned       __int64 uint_least64_t;

  23.     /* 7.18.1.3 */

  24.     /* fastest minimum-width signed integer types */
  25. typedef   signed           int int_fast8_t;
  26. typedef   signed           int int_fast16_t;
  27. typedef   signed           int int_fast32_t;
  28. typedef   signed       __int64 int_fast64_t;

  29.     /* fastest minimum-width unsigned integer types */
  30. typedef unsigned           int uint_fast8_t;
  31. typedef unsigned           int uint_fast16_t;
  32. typedef unsigned           int uint_fast32_t;
  33. typedef unsigned       __int64 uint_fast64_t;

  34.     /* 7.18.1.4 integer types capable of holding object pointers */
  35. typedef   signed           int intptr_t;
  36. typedef unsigned           int uintptr_t;

  37.     /* 7.18.1.5 greatest-width integer types */
  38. typedef   signed       __int64 intmax_t;
  39. typedef unsigned       __int64 uintmax_t;


 楼主| sunmeat 发表于 2014-9-25 09:55 | 显示全部楼层
CMSIS IO类型限定词
图像 598.png
 楼主| sunmeat 发表于 2014-9-25 09:56 | 显示全部楼层
固件库与CMSIS数据类型对比
图像 599.png
 楼主| sunmeat 发表于 2014-9-25 09:56 | 显示全部楼层
 楼主| sunmeat 发表于 2014-9-25 09:57 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

208

主题

2132

帖子

13

粉丝
快速回复 在线客服 返回列表 返回顶部