-
Notifications
You must be signed in to change notification settings - Fork 0
/
edc_crc.h
556 lines (450 loc) · 25.7 KB
/
edc_crc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
/*
*********************************************************************************************************
* uC/CRC
* ERROR DETECTING CODE (EDC) & ERROR CORRECTING CODE (ECC) CALCULATION UTILITIES
*
* Copyright 2007-2020 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
* This software is subject to an open source license and is distributed by
* Silicon Laboratories Inc. pursuant to the terms of the Apache License,
* Version 2.0 available at www.apache.org/licenses/LICENSE-2.0.
*
*********************************************************************************************************
*/
/*
*********************************************************************************************************
*
* CYCLIC REDUNDANCY CHECK (CRC) CALCULATION
*
* Filename : edc_crc.h
* Version : V1.10.00
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* MODULE
*********************************************************************************************************
*/
#ifndef EDC_CRC_PRESENT
#define EDC_CRC_PRESENT
/*
*********************************************************************************************************
* CRC VERSION NUMBER
*
* Note(s) : (1) (a) The CRC software version is denoted as follows :
*
* Vx.yy.zz
*
* where
* V denotes 'Version' label
* x denotes major software version revision number
* yy denotes minor software version revision number
* zz denotes sub-minor software version revision number
*
* (b) The software version label #define is formatted as follows :
*
* ver = x.yyzz * 100 * 100
*
* where
* ver denotes software version number scaled as an integer value
* x.yyzz denotes software version number, where the unscaled integer
* portion denotes the major version number & the unscaled
* fractional portion denotes the (concatenated) minor
* version numbers
*********************************************************************************************************
*/
#define CRC_VERSION 11000u /* See Note #1. */
/*
*********************************************************************************************************
* INCLUDE FILES
*********************************************************************************************************
*/
#include <cpu.h>
#include <cpu_core.h>
#include <lib_def.h>
#include <crc_cfg.h>
/*
*********************************************************************************************************
* EXTERNS
*********************************************************************************************************
*/
#ifdef EDC_CRC_MODULE
#define EDC_CRC_EXT
#else
#define EDC_CRC_EXT extern
#endif
/*
*********************************************************************************************************
* DEFAULT CONFIGURATION
*********************************************************************************************************
*/
#ifndef ECC_CRC_CFG_ARG_CHK_EXT_EN
#define ECC_CRC_CFG_ARG_CHK_EXT_EN DEF_ENABLED
#endif
#ifndef EDC_CRC_CFG_OPTIMIZE_ASM_EN
#define EDC_CRC_CFG_OPTIMIZE_ASM_EN DEF_DISABLED
#endif
#ifndef EDC_CRC_CFG_CRC16_1021_EN
#define EDC_CRC_CFG_CRC16_1021_EN DEF_DISABLED
#endif
#ifndef EDC_CRC_CFG_CRC16_1021_REF_EN
#define EDC_CRC_CFG_CRC16_1021_REF_EN DEF_DISABLED
#endif
#ifndef EDC_CRC_CFG_CRC16_8005_EN
#define EDC_CRC_CFG_CRC16_8005_EN DEF_DISABLED
#endif
#ifndef EDC_CRC_CFG_CRC16_8005_REF_EN
#define EDC_CRC_CFG_CRC16_8005_REF_EN DEF_DISABLED
#endif
#ifndef EDC_CRC_CFG_CRC16_8048_EN
#define EDC_CRC_CFG_CRC16_8048_EN DEF_DISABLED
#endif
#ifndef EDC_CRC_CFG_CRC16_8048_REF_EN
#define EDC_CRC_CFG_CRC16_8048_REF_EN DEF_DISABLED
#endif
#ifndef EDC_CRC_CFG_CRC32_EN
#define EDC_CRC_CFG_CRC32_EN DEF_DISABLED
#endif
#ifndef EDC_CRC_CFG_CRC32_REF_EN
#define EDC_CRC_CFG_CRC32_REF_EN DEF_DISABLED
#endif
/*
*********************************************************************************************************
* DEFINES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* CRC ERROR CODES
*********************************************************************************************************
*/
typedef enum edc_err {
EDC_CRC_ERR_NONE = 0u, /* No error. */
EDC_CRC_ERR_NULL_PTR = 1u, /* Null ptr argument. */
EDC_CRC_ERR_INVALID_MODEL = 2u, /* Invalid CRC calc model. */
} EDC_ERR;
/*
*********************************************************************************************************
* DATA TYPES
*********************************************************************************************************
*/
typedef struct crc_model_16 {
CPU_INT16U Poly;
CPU_INT16U InitVal;
CPU_BOOLEAN Reflect;
CPU_INT16U XorOut;
const CPU_INT16U *TblPtr;
} CRC_MODEL_16;
typedef struct crc_model_32 {
CPU_INT32U Poly;
CPU_INT32U InitVal;
CPU_BOOLEAN Reflect;
CPU_INT32U XorOut;
const CPU_INT32U *TblPtr;
} CRC_MODEL_32;
typedef struct crc_calc_16 {
CRC_MODEL_16 Model;
CPU_INT16U CRC_Curr;
} CRC_CALC_16;
typedef struct crc_calc_32 {
CRC_MODEL_32 Model;
CPU_INT32U CRC_Curr;
} CRC_CALC_32;
/*
*********************************************************************************************************
* CONSTANTS
*
* Note(s) : (1) Constant tables for several common CRCs are supplied. Unfortunately, there often exists
* no definitive specification of these CRCs or such specification is difficult to obtain.
* Consequently, the most convenient method for determining the necessary CRC is accomplished
* by comparing CRCs from real tests with CRCs from example tests. CRC outputs for the input
* ASCII string "123456789" are given in this table :
*
*
* ------------------------------------------------------------------
* | POLY | REFLECT? | INIT VAL | COMP. OUT? | CRC |
* -------------+------------+------------+------------+-------------
* | 0x1021 | NO | 0x0000 | NO | 0x31C3 |
* | 0x1021 | NO | 0x0000 | YES | 0xCE3C |
* | 0x1021 | NO | 0x1D0F | NO | 0xE5CC |
* | 0x1021 | NO | 0xFFFF | NO | 0x29B1 |
* | 0x1021 | NO | 0xFFFF | YES | 0xD64E |
* -------------+------------+------------+------------+-------------
* | 0x1021 | YES | 0x0000 | NO | 0x2189 |
* | 0x1021 | YES | 0x0000 | YES | 0xDE76 |
* | 0x1021 | YES | 0xFFFF | NO | 0x6F91 |
* | 0x1021 | YES | 0xFFFF | YES | 0x906E |
* -------------+------------+------------+------------+-------------
* | 0x8005 | NO | 0x0000 | NO | 0xFEE8 |
* | 0x8005 | NO | 0x0000 | YES | 0x0117 |
* | 0x8005 | NO | 0xFFFF | NO | 0xAEE7 |
* | 0x8005 | NO | 0xFFFF | YES | 0x5118 |
* -------------+------------+------------+------------+-------------
* | 0x8005 | YES | 0x0000 | NO | 0xBB3D |
* | 0x8005 | YES | 0x0000 | YES | 0x44C2 |
* | 0x8005 | YES | 0xFFFF | NO | 0x4B37 |
* | 0x8005 | YES | 0xFFFF | YES | 0xB4C8 |
* -------------+------------+------------+------------+-------------
* | 0x8048 | NO | 0x0000 | NO | 0x80A0 |
* | 0x8048 | NO | 0x0000 | YES | 0x7F5F |
* | 0x8048 | NO | 0xFFFF | NO | 0xE8E0 |
* | 0x8048 | NO | 0xFFFF | YES | 0x171F |
* -------------+------------+------------+------------+-------------
* | 0x8048 | YES | 0x0000 | NO | 0x1506 |
* | 0x8048 | YES | 0x0000 | YES | 0xEAF9 |
* | 0x8048 | YES | 0xFFFF | NO | 0x1710 |
* | 0x8048 | YES | 0xFFFF | YES | 0xE8EF |
* -------------+------------+------------+------------+-------------
* | 0x04C11DB7 | NO | 0x00000000 | NO | 0x89A1897F |
* | 0x04C11DB7 | NO | 0x00000000 | YES | 0x765E7680 |
* | 0x04C11DB7 | NO | 0xFFFFFFFF | NO | 0x0376E6E7 |
* | 0x04C11DB7 | NO | 0xFFFFFFFF | YES | 0xFC891918 |
* -------------+------------+------------+------------+-------------
* | 0x04C11DB7 | YES | 0x00000000 | NO | 0x2DFD2D88 |
* | 0x04C11DB7 | YES | 0x00000000 | YES | 0xD202D277 |
* | 0x04C11DB7 | YES | 0xFFFFFFFF | NO | 0x340BC6D9 |
* | 0x04C11DB7 | YES | 0xFFFFFFFF | YES | 0xCBF43926 |
* -------------+------------+------------+------------+-------------
*
* (a) The column 'COMP. OUT?' (short for 'COMPLEMENT OUTPUT?') indicates whether the output
* XOR value would be either 0xFFFF (for a CRC16) or 0xFFFFFFFF (for a CRC32).
*
* (1) If YES, this means that the CRC model struct ('CRC_MODEL_16' or 'CRC_MODEL_32')
* should have a 'XorOut' member equal to 0xFFFF or 0xFFFFFFFF, respectively.
*
* (2) If NO, this means that the CRC model struct ('CRC_MODEL_16' or 'CRC_MODEL_32')
* should have a 'XorOut' member equal to 0x0000 or 0x00000000, respectively.
*
* (b) The column 'REFLECT?' indicates that BOTH the input data & final output value
* would be reflected.
*
* (1) If YES, this means that the CRC model struct ('CRC_MODEL_16' or 'CRC_MODEL_32')
* should have a 'Reflect' member equal to DEF_YES.
*
* (2) If NO, this means that the CRC model struct ('CRC_MODEL_16' or 'CRC_MODEL_32')
* should have a 'Reflect' member equal to DEF_NO.
*
* (2) The constant tables depend ONLY on the polynomial & whether the data is reflected.
* The additional model parameters, such as the initial value & the XOR for the output,
* do not matter. Consequently, the provided tables may be used with user-defined models
* that differ only in initial value &/or XOR for the output with the models provided
* here.
*********************************************************************************************************
*/
#if (EDC_CRC_CFG_CRC16_1021_EN == DEF_ENABLED)
extern const CPU_INT16U CRC_TblCRC16_1021[256];
extern const CRC_MODEL_16 CRC_ModelCRC16_1021;
#endif
#if (EDC_CRC_CFG_CRC16_1021_REF_EN == DEF_ENABLED)
extern const CPU_INT16U CRC_TblCRC16_1021_ref[256];
extern const CRC_MODEL_16 CRC_ModelCRC16_1021_ref;
#endif
#if (EDC_CRC_CFG_CRC16_8005_EN == DEF_ENABLED)
extern const CPU_INT16U CRC_TblCRC16_8005[256];
extern const CRC_MODEL_16 CRC_ModelCRC16_8005;
#endif
#if (EDC_CRC_CFG_CRC16_8005_REF_EN == DEF_ENABLED)
extern const CPU_INT16U CRC_TblCRC16_8005_ref[256];
extern const CRC_MODEL_16 CRC_ModelCRC16_8005_ref;
#endif
#if (EDC_CRC_CFG_CRC16_8048_EN == DEF_ENABLED)
extern const CPU_INT16U CRC_TblCRC16_8048[256];
extern const CRC_MODEL_16 CRC_ModelCRC16_8048;
#endif
#if (EDC_CRC_CFG_CRC16_8048_REF_EN == DEF_ENABLED)
extern const CPU_INT16U CRC_TblCRC16_8048_ref[256];
extern const CRC_MODEL_16 CRC_ModelCRC16_8048_ref;
#endif
#if (EDC_CRC_CFG_CRC32_EN == DEF_ENABLED)
extern const CPU_INT32U CRC_TblCRC32[256];
extern const CRC_MODEL_32 CRC_ModelCRC32;
#endif
#if (EDC_CRC_CFG_CRC32_REF_EN == DEF_ENABLED)
extern const CPU_INT32U CRC_TblCRC32_ref[256];
extern const CRC_MODEL_32 CRC_ModelCRC32_ref;
#endif
/*
*********************************************************************************************************
* GLOBAL VARIABLES
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* MACRO'S
*********************************************************************************************************
*/
/*
*********************************************************************************************************
* FUNCTION PROTOTYPES
*********************************************************************************************************
*/
/* ------------- 16-BIT CRC ON DATA STREAM ------------ */
void CRC_Open_16Bit (CRC_MODEL_16 *p_model,
CRC_CALC_16 *p_calc,
EDC_ERR *p_err);
void CRC_WrBlock_16Bit (CRC_CALC_16 *p_calc,
void *p_data,
CPU_SIZE_T size);
void CRC_WrOctet_16Bit (CRC_CALC_16 *p_calc,
CPU_INT08U octet);
CPU_INT16U CRC_Close_16Bit (CRC_CALC_16 *p_calc);
/* ------------- 32-BIT CRC ON DATA STREAM ------------ */
void CRC_Open_32Bit (CRC_MODEL_32 *p_model,
CRC_CALC_32 *p_calc,
EDC_ERR *p_err);
void CRC_WrBlock_32Bit (CRC_CALC_32 *p_calc,
void *p_data,
CPU_SIZE_T size);
void CRC_WrOctet_32Bit (CRC_CALC_32 *p_calc,
CPU_INT08U octet);
CPU_INT32U CRC_Close_32Bit (CRC_CALC_32 *p_calc);
/* --------------------- Reflection ------------------- */
CPU_INT08U CRC_Reflect_08Bit (CPU_INT08U datum);
CPU_INT16U CRC_Reflect_16Bit (CPU_INT16U datum);
CPU_INT32U CRC_Reflect_32Bit (CPU_INT32U datum);
/* -------------- CALCULATION ON DATA SET ------------- */
CPU_INT16U CRC_ChkSumCalc_16Bit (CRC_MODEL_16 *p_model,
void *p_data,
CPU_SIZE_T size,
EDC_ERR *p_err);
CPU_INT32U CRC_ChkSumCalc_32Bit (CRC_MODEL_32 *p_model,
void *p_data,
CPU_SIZE_T size,
EDC_ERR *p_err);
/*
*********************************************************************************************************
* FUNCTION PROTOTYPES
* defined in edc_crc_a.asm
*********************************************************************************************************
*/
#if (EDC_CRC_CFG_OPTIMIZE_ASM_EN == DEF_ENABLED)
CPU_INT16U CRC_ChkSumCalcTbl_16Bit (CPU_INT16U init_val,
const CPU_INT16U *p_tbl,
CPU_INT08U *p_data,
CPU_SIZE_T size);
CPU_INT16U CRC_ChkSumCalcTbl_16Bit_ref(CPU_INT16U init_val,
const CPU_INT16U *p_tbl,
CPU_INT08U *p_data,
CPU_SIZE_T size);
CPU_INT32U CRC_ChkSumCalcTbl_32Bit (CPU_INT32U init_val,
const CPU_INT32U *p_tbl,
CPU_INT08U *p_data,
CPU_SIZE_T size);
CPU_INT32U CRC_ChkSumCalcTbl_32Bit_ref(CPU_INT32U init_val,
const CPU_INT32U *p_tbl,
CPU_INT08U *p_data,
CPU_SIZE_T size);
#endif
/*
*********************************************************************************************************
* CONFIGURATION ERRORS
*********************************************************************************************************
*/
#ifndef ECC_CRC_CFG_ARG_CHK_EXT_EN
#error "ECC_CRC_CFG_ARG_CHK_EXT_EN not #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#elif ((ECC_CRC_CFG_ARG_CHK_EXT_EN != DEF_DISABLED) && \
(ECC_CRC_CFG_ARG_CHK_EXT_EN != DEF_ENABLED ))
#error "ECC_CRC_CFG_ARG_CHK_EXT_EN illegally #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#endif
#ifndef EDC_CRC_CFG_OPTIMIZE_ASM_EN
#error "EDC_CRC_CFG_OPTIMIZE_ASM_EN not #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#elif ((EDC_CRC_CFG_OPTIMIZE_ASM_EN != DEF_ENABLED ) && \
(EDC_CRC_CFG_OPTIMIZE_ASM_EN != DEF_DISABLED))
#error "EDC_CRC_CFG_OPTIMIZE_ASM_EN illegally #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#endif
#ifndef EDC_CRC_CFG_CRC16_1021_EN
#error "EDC_CRC_CFG_CRC16_1021_EN not #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#elif ((EDC_CRC_CFG_CRC16_1021_EN != DEF_ENABLED ) && \
(EDC_CRC_CFG_CRC16_1021_EN != DEF_DISABLED))
#error "EDC_CRC_CFG_CRC16_1021_EN illegally #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#endif
#ifndef EDC_CRC_CFG_CRC16_1021_REF_EN
#error "EDC_CRC_CFG_CRC16_1021_REF_EN not #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#elif ((EDC_CRC_CFG_CRC16_1021_REF_EN != DEF_ENABLED ) && \
(EDC_CRC_CFG_CRC16_1021_REF_EN != DEF_DISABLED))
#error "EDC_CRC_CFG_CRC16_1021_REF_EN illegally #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#endif
#ifndef EDC_CRC_CFG_CRC16_8005_EN
#error "EDC_CRC_CFG_CRC16_8005_EN not #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#elif ((EDC_CRC_CFG_CRC16_8005_EN != DEF_ENABLED ) && \
(EDC_CRC_CFG_CRC16_8005_EN != DEF_DISABLED))
#error "EDC_CRC_CFG_CRC16_8005_EN illegally #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#endif
#ifndef EDC_CRC_CFG_CRC16_8005_REF_EN
#error "EDC_CRC_CFG_CRC16_8005_REF_EN not #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#elif ((EDC_CRC_CFG_CRC16_8005_REF_EN != DEF_ENABLED ) && \
(EDC_CRC_CFG_CRC16_8005_REF_EN != DEF_DISABLED))
#error "EDC_CRC_CFG_CRC16_8005_REF_EN illegally #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#endif
#ifndef EDC_CRC_CFG_CRC16_8048_EN
#error "EDC_CRC_CFG_CRC16_8048_EN not #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#elif ((EDC_CRC_CFG_CRC16_8048_EN != DEF_ENABLED ) && \
(EDC_CRC_CFG_CRC16_8048_EN != DEF_DISABLED))
#error "EDC_CRC_CFG_CRC16_8048_EN illegally #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#endif
#ifndef EDC_CRC_CFG_CRC16_8048_REF_EN
#error "EDC_CRC_CFG_CRC16_8048_REF_EN not #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#elif ((EDC_CRC_CFG_CRC16_8048_REF_EN != DEF_ENABLED ) && \
(EDC_CRC_CFG_CRC16_8048_REF_EN != DEF_DISABLED))
#error "EDC_CRC_CFG_CRC16_8048_REF_EN illegally #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#endif
#ifndef EDC_CRC_CFG_CRC32_EN
#error "EDC_CRC_CFG_CRC32_EN not #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#elif ((EDC_CRC_CFG_CRC32_EN != DEF_ENABLED ) && \
(EDC_CRC_CFG_CRC32_EN != DEF_DISABLED))
#error "EDC_CRC_CFG_CRC32_EN illegally #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#endif
#ifndef EDC_CRC_CFG_CRC32_REF_EN
#error "EDC_CRC_CFG_CRC32_REF_EN not #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#elif ((EDC_CRC_CFG_CRC32_REF_EN != DEF_ENABLED ) && \
(EDC_CRC_CFG_CRC32_REF_EN != DEF_DISABLED))
#error "EDC_CRC_CFG_CRC32_REF_EN illegally #define'd in 'app_cfg.h'"
#error " [MUST be DEF_ENABLED ] "
#error " [ || DEF_DISABLED] "
#endif
/*
*********************************************************************************************************
* MODULE END
*********************************************************************************************************
*/
#endif /* End of CRC module include. */