-
Notifications
You must be signed in to change notification settings - Fork 0
/
crc_cfg.h
75 lines (65 loc) · 3.33 KB
/
crc_cfg.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
/*
*********************************************************************************************************
* 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.
*
*********************************************************************************************************
*/
/*
*********************************************************************************************************
*
* CONFIGURATION FILE
*
* TEMPLATE
*
* Filename : crc_cfg.h
* Version : V1.10.00
*********************************************************************************************************
*/
#ifndef CRC_CFG_H
#define CRC_CFG_H
#include <rtconfig.h>
/*
*********************************************************************************************************
* EDC
*
* Note(s) : (1) Configure EDC_CRC_CFG_ERR_ARG_CHK_EXT_EN to enable/disable the CRC external argument
* check feature
*
* (2) Configure EDC_CRC_CFG_OPTIMIZE_ASM_EN to enable/disable optimized assembly-language
* calculation.
*
* (3) Each of these determine whether the associated table of pre-computed CRC values will
* be included in the build. For more information about the tables, the meaning of the
* identifiers, and how these are used, please refer to the documentation.
*********************************************************************************************************
*/
#define EDC_CRC_CFG_ERR_ARG_CHK_EXT_EN DEF_ENABLED /* See Note #1. */
#define EDC_CRC_CFG_OPTIMIZE_ASM_EN DEF_DISABLED /* See Note #2. */
#define EDC_CRC_CFG_CRC16_1021_EN DEF_ENABLED /* See Note #3. */
#define EDC_CRC_CFG_CRC16_8005_EN DEF_ENABLED
#define EDC_CRC_CFG_CRC16_8048_EN DEF_ENABLED
#define EDC_CRC_CFG_CRC32_EN DEF_ENABLED
#define EDC_CRC_CFG_CRC16_1021_REF_EN DEF_ENABLED
#define EDC_CRC_CFG_CRC16_8005_REF_EN DEF_ENABLED
#define EDC_CRC_CFG_CRC16_8048_REF_EN DEF_ENABLED
#define EDC_CRC_CFG_CRC32_REF_EN DEF_ENABLED
/*
*********************************************************************************************************
* ECC
*
* Note(s) : (1) Configure ECC_HAMMING_CFG_ARG_CHK_EXT_EN to enable/disable the Hamming code external
* argument check feature
*
*********************************************************************************************************
*/
#define ECC_HAMMING_CFG_ARG_CHK_EXT_EN DEF_ENABLED /* See Note #1. */
#endif