mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
更新了CUBEMX配置,添加了所有引脚和外部中断.
This commit is contained in:
18
modules/referee/crc_ref.h
Normal file
18
modules/referee/crc_ref.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef __CRC_H_
|
||||
#define __CRC_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
// CRC8
|
||||
void Append_CRC8_Check_Sum(uint8_t *pchMessage, uint16_t dwLength);
|
||||
uint32_t Verify_CRC8_Check_Sum(uint8_t *pchMessage, uint16_t dwLength);
|
||||
uint8_t Get_CRC8_Check_Sum(uint8_t *pchMessage, uint16_t dwLength, uint8_t ucCRC8);
|
||||
|
||||
// CRC16
|
||||
void Append_CRC16_Check_Sum(uint8_t *pchMessage, uint32_t dwLength);
|
||||
uint32_t Verify_CRC16_Check_Sum(uint8_t *pchMessage, uint32_t dwLength);
|
||||
uint16_t Get_CRC16_Check_Sum(uint8_t *pchMessage, uint32_t dwLength, uint16_t wCRC);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user