展开全部
这几2113种方式都是在表达5261同1个意思,没4102有区别1653。
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
typedef unsigned __int64 uint64_t;
代码示例内:
voidTIM3_Int_Init(u16arr,u16psc)
{
//dosomething...
}
扩展资容料
u8,u16,u32的使用
示例:
#defineU32 unsignedint
#defineU16 unsignedshort
#defineS32 int
#defineS16 shortint
#defineU8 unsignedchar
#defineS8 char
unsignedchar=u8
unsignedshortint=u16
unsignedlongint=u32