cksum.h
来自「Hitech microchip PIC C18 Compiler」· C头文件 代码 · 共 25 行
H
25 行
/**** These are typical settings and **** **** should be adjusted to suit those ** **** used in the --CHECKSUM option. ****/#define _OFFSET 0#define _ALGORITHM 1 // can be -4,-3,-2,-1,1,2,3,4#define _RESULT_WIDTH 2 // byte size of result#define _START 0L#define _END (_ROMSIZE - _RESULT_WIDTH - 1)/*********************************//* The data type being returned is * determined from the above settings. */#if (_RESULT_WIDTH == 1) #define _D_TYPE unsigned char#elif (_RESULT_WIDTH == 2) #define _D_TYPE unsigned int#else #define _D_TYPE unsigned long#endif// Function prototypesextern unsigned _D_TYPE cksum(void);extern const unsigned _D_TYPE _checksum0;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?