匿名用户

1级

2011-04-20 回答

stm32f10x_type.h这个文件里面;你也可e799bee5baa6e4b893e5b19e31333264633561以自己设置;我就是这样设置的

typedef unsigned char uint8; /* defined for unsigned 8-bits integer variable 无符号8位整型变量 */

typedef signed char int8; /* defined for signed 8-bits integer variable 有符号8位整型变量 */

typedef unsigned short uint16; /* defined for unsigned 16-bits integer variable 无符号16位整型变量 */

typedef signed short int16; /* defined for signed 16-bits integer variable 有符号16位整型变量 */

typedef unsigned int uint32; /* defined for unsigned 32-bits integer variable 无符号32位整型变量 */

typedef signed int int32; /* defined for signed 32-bits integer variable 有符号32位整型变量 */

typedef float fp32; /* single precision floating point variable (32bits) 单精度浮点数(32位长度) */

typedef double fp64; /* double precision floating point variable (64bits) 双精度浮点数(64位长度) */

Logo

更多推荐