feat: 移植从机通信帧协议

This commit is contained in:
bmy
2024-02-25 11:49:10 +08:00
parent 354b41dad8
commit 038098ff2d
20 changed files with 1562 additions and 19 deletions

9
3rd-lib/crc16/crc16.h Normal file
View File

@@ -0,0 +1,9 @@
#ifndef __CRC_16_H
#define __CRC_16_H
#include <stdint.h>
extern uint16_t crc16(uint8_t *addr,uint32_t num); // 实时计算方式
extern uint16_t crc16_check(uint8_t* addr, uint32_t num); // 查表计算方式
#endif