摘要: #include "stdio.h" typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; 阅读全文
posted @ 2017-12-28 17:33 壹点灵异 阅读(1658) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdio.h" 2 3 4 typedef char int8_t; 5 typedef short int16_t; 6 typedef int int32_t; 7 typedef long long int64_t; 8 9 typedef unsigned char ... 阅读全文
posted @ 2017-12-28 15:29 壹点灵异 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 【转】玩转嵌入式(公众号) 在入门单片机时,想必大家都都会遇到一下这种情况 unsigned char a = 0x12; unsigned char b = 0x34; unsigned int c = 0; 如何把两个8位数据和在一起变成16位数据呢? 一般情况下大家都会这样做,我最初是也是这么 阅读全文
posted @ 2017-12-28 10:13 壹点灵异 阅读(10660) 评论(0) 推荐(0) 编辑