📄 crc_config.c
字号:
#if defined(__dsPIC33F__)
#include <p33Fxxxx.h>
#elif defined(__PIC24H__)
#include <p24hxxxx.h>
#endif
#include "crc.h"
#ifdef _CRC_PROG_V1
/******************************************************************************
* Function: void CRC_Config(UINT16 poly , UINT16 config)
*
* PreCondition: None
*
* Input: poly - Polynomial to calculate CRC
* config - CRC Control reg value
*
* Output: None
*
* Side Effects: None
*
* Overview: This function configures CRC module
*
* Note: None
*****************************************************************************/
void CRC_Config(UINT16 poly , UINT16 config)
{
CRCXOR = poly;
CRCCON = config;
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -