今天写程序 用3.5的库函数 发现这样一个问题 我定义了一个u32类型数据 出现警告 后追根溯源
找到stm32库函数中有这样定义 typedef uint32_t u32; (这句话在stm32f10x.h的503行处) 然后找unit_32
发现这句话typedef unsigned int uint32_t;(这句话在stdint.h中第45行处)
其中 stdint.h中 还有这样的定义
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
请问 unsigned short int 和unsigned int 不是一回事吗? 如果一样的话 哪么uint16_t 和 uint32_t 不就是一样了吗? 还有 STM32中的 unsigned long int 跑哪去了?
请对库函数深入研究过的大虾解释。
我用的是V3.5版本 |