crc_config.c
来自「基於 c51/8051 的 nand Flash Memory HY27US08」· C语言 代码 · 共 34 行
C
34 行
#if defined(__PIC24F__)
#include <p24Fxxxx.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 + =
减小字号Ctrl + -
显示快捷键?