不管他怎么换,都是基于标准C来的,看清楚以下几个文件你就OK了:core_cm3.h ;stm32f10x.h; stdint.h; 其中每个文件大概作用如下:
stdint.h 这里放着C语言的标准表达方式
- //第36行开始
- typedef signed char int8_t; // 标准表达方式 signed char 被等同于 int8_t;
- typedef signed short int int16_t;
- typedef signed int int32_t;//在32位环境里,int代表4个字节32位!!
- typedef signed __int64 int64_t;
-
- typedef unsigned char uint8_t;
- typedef unsigned short int uint16_t;
- typedef unsigned int uint32_t;
- typedef unsigned __int64 uint64_t;
-
- typedef signed char int_least8_t;
- typedef signed short int int_least16_t;
- typedef signed int int_least32_t;
- typedef signed __int64 int_least64_t;
-
- typedef unsigned char uint_least8_t;
- typedef unsigned short int uint_least16_t;
- typedef unsigned int uint_least32_t;
- typedef unsigned __int64 uint_least64_t;
-
- typedef signed int int_fast8_t;
- typedef signed int int_fast16_t;
- typedef signed int int_fast32_t;
- typedef signed __int64 int_fast64_t;
-
- typedef unsigned int uint_fast8_t;
- typedef unsigned int uint_fast16_t;
- typedef unsigned int uint_fast32_t;
- typedef unsigned __int64 uint_fast64_t;
-
- typedef signed int intptr_t;
- typedef unsigned int uintptr_t;
- typedef signed __int64 intmax_t;
- typedef unsigned __int64 uintmax_t;
|