Document API IEC60730 Library
lib
config
sl_iec60730_config.h
Go to the documentation of this file.
1
/***************************************************************************/
18
#ifndef SL_IEC60730_CONFIG_H
19
#define SL_IEC60730_CONFIG_H
20
21
// <<< Use Configuration Wizard in Context Menu >>>
22
23
/**************************************************************************/
30
// <h> IEC60730_IRQ
31
32
// <o SL_IEC60730_IRQ_TYPE_VARIABLE> Data type for iec60730_IRQExecCount variables
34
// <uint8_t=> uint8_t
35
// <uint16_t=> uint16_t
36
// <uint32_t=> uint32_t
37
// <i> Default: uint8_t
38
#define SL_IEC60730_IRQ_TYPE_VARIABLE uint8_t
39
// <q SL_IEC60730_IRQ_STATUS_ENABLE> Enable function to get the value of failed irqs
41
// <i> Default: 0
42
#define SL_IEC60730_IRQ_STATUS_ENABLE 0
43
44
// </h>
45
48
/**************************************************************************/
53
// <h> IEC60730_WATCHDOG
54
55
// <q SL_IEC60730_WDOG0_ENABLE> Enable Watchdog 0
57
// <i> Default: 1
58
#ifndef SL_IEC60730_WDOG0_ENABLE
59
#define SL_IEC60730_WDOG0_ENABLE 1
60
#endif //SL_IEC60730_WDOG0_ENABLE
61
62
// <q SL_IEC60730_WDOG1_ENABLE> Enable Watchdog 1
64
// <i> Default: 0
65
#ifndef SL_IEC60730_WDOG1_ENABLE
66
#define SL_IEC60730_WDOG1_ENABLE 0
67
#endif //SL_IEC60730_WDOG1_ENABLE
68
69
// <q SL_IEC60730_SAVE_STAGE_ENABLE> Enable saving iec60730_watchdog_state to backup RAM on Series 2.
71
// <i> Default: 0
72
#define SL_IEC60730_SAVE_STAGE_ENABLE 0
73
74
// <q SL_IEC60730_RSTCAUSES_CLEAR_ENABLE> Reset cause flags in the RSTCASUES register.
76
// <i> Default: 1
77
#define SL_IEC60730_RSTCAUSES_CLEAR_ENABLE 1
78
79
// </h>
80
83
/**************************************************************************/
88
// <h> IEC60730_SYS_CLOCK
89
90
// <o SL_IEC60730_TEST_CLOCK_MULTIPLIER> Determines how many entrances into sl_iec60730_test_clock_tick() occur before bist frequency test executes
92
// <i> Default: 10
93
#define SL_IEC60730_TEST_CLOCK_MULTIPLIER 10
94
95
// <o SL_IEC60730_SYS_CLOCK_TEST_CLK_FREQ> This value is used to compare with the system clock counter
98
// <i> Default: 10
99
#define SL_IEC60730_SYS_CLOCK_TEST_CLK_FREQ 10
100
101
// <o SL_IEC60730_SYS_CLOCK_TEST_TOLERANCE> The tolerance of test
104
// <i> Default: 1
105
#define SL_IEC60730_SYS_CLOCK_TEST_TOLERANCE 1
106
107
// </h>
108
111
/**************************************************************************/
116
// <h> IEC60730_VMC
117
118
// <q SL_IEC60730_USE_MARCHX_ENABLE> Enable used the algorithm used in BIST is March-X.
120
// <i> Default: 1
121
#ifndef SL_IEC60730_USE_MARCHX_ENABLE
122
#define SL_IEC60730_USE_MARCHX_ENABLE 1
123
#endif // SL_IEC60730_USE_MARCHX_ENABLE
124
125
// <o SL_IEC60730_VAR_BLOCKS_PER_BIST> SL_IEC60730_VAR_BLOCKS_PER_BIST
127
// <i> Default: 256
128
#define SL_IEC60730_VAR_BLOCKS_PER_BIST 256
129
130
// <s.14 SL_STACK_OVERFLOW_CONST_GUARD_VALUE_0> Pattern 0 is used for stack overflow
132
// <i> Default: (0xEEEEEEEEuL)
133
#define SL_STACK_OVERFLOW_CONST_GUARD_VALUE_0 (0xEEEEEEEEuL)
134
135
// <s.14 SL_STACK_OVERFLOW_CONST_GUARD_VALUE_1> Pattern 1 is used for stack overflow
137
// <i> Default: (0xCCCCCCCCuL)
138
#define SL_STACK_OVERFLOW_CONST_GUARD_VALUE_1 (0xCCCCCCCCuL)
139
140
// <s.14 SL_STACK_OVERFLOW_CONST_GUARD_VALUE_2> Pattern 2 is used for stack overflow
142
// <i> Default: (0xBBBBBBBBuL)
143
#define SL_STACK_OVERFLOW_CONST_GUARD_VALUE_2 (0xBBBBBBBBuL)
144
145
// <s.14 SL_STACK_OVERFLOW_CONST_GUARD_VALUE_3> Pattern 3 is used for stack overflow
147
// <i> Default: (0xDDDDDDDDuL)
148
#define SL_STACK_OVERFLOW_CONST_GUARD_VALUE_3 (0xDDDDDDDDuL)
149
150
// </h>
151
154
/**************************************************************************/
159
// <h> IEC60730_IMC
160
161
// <q SL_IEC60730_CRC_DEBUG_ENABLE> Enable debug IMC module
163
// <i> Default: 1
164
#define SL_IEC60730_CRC_DEBUG_ENABLE 1
165
166
// <o SL_IEC60730_INVAR_BLOCKS_PER_BIST> SL_IEC60730_INVAR_BLOCKS_PER_BIST
168
// <i> Default: 512
169
#define SL_IEC60730_INVAR_BLOCKS_PER_BIST 512
170
171
// <o SL_IEC60730_FLASH_BLOCK> Definition is size of block of Flash
179
// <i> Default: 64
180
#define SL_IEC60730_FLASH_BLOCK 64
181
182
// <e SL_IEC60730_CRC_USE_SW_ENABLE> Enable CRC calculation using software instead of hardware
185
// <i> Default: 0
186
#ifndef SL_IEC60730_CRC_USE_SW_ENABLE
187
#define SL_IEC60730_CRC_USE_SW_ENABLE 0
188
#endif // SL_IEC60730_CRC_USE_SW_ENABLE
189
190
// <q SL_IEC60730_SW_CRC_TABLE_ENABLE> Enable pre-defined table for calculating CRC
193
// <i> Default: 0
194
#ifndef SL_IEC60730_SW_CRC_TABLE_ENABLE
195
#define SL_IEC60730_SW_CRC_TABLE_ENABLE 0
196
#endif // SL_IEC60730_SW_CRC_TABLE_ENABLE
197
// </e>
198
199
// <q SL_IEC60730_USE_CRC_32_ENABLE> Enable CRC-32 for calculating the CRC value
202
// <i> Default: 0
203
#ifndef SL_IEC60730_USE_CRC_32_ENABLE
204
#define SL_IEC60730_USE_CRC_32_ENABLE 0
205
#endif // SL_IEC60730_USE_CRC_32_ENABLE
206
207
// </h>
208
212
// <<< end of configuration section >>>
213
214
#endif
/* SL_IEC60730_CONFIG_H */
Generated by
1.8.17