2011年10月19日

CRC校验码 代码

摘要: u16 CRC_16_acc(unsigned char *buf,u16 len,u16 acc){ u16 crc; unsigned char c,i,f1; crc = acc; f1 = 1; while(len != 0) { c =* buf; ... 阅读全文

posted @ 2011-10-19 16:52 码农也疯狂 阅读(491) 评论(0) 推荐(0) 编辑

STM 32 can 实例代码

摘要: #include "sysdef.h"#define MAX_MAIL_NUM 3//CAN总线调试:0=运行 1=自环调试#define CAN_DEBUG 0//CAN总线波特率:0=250kbps,1=500kbps,2=1Mbps#define CAN1_BPS 0u... 阅读全文

posted @ 2011-10-19 16:50 码农也疯狂 阅读(4084) 评论(0) 推荐(0) 编辑

导航