-
Notifications
You must be signed in to change notification settings - Fork 221
/
atca_config.h.in
135 lines (102 loc) · 4.14 KB
/
atca_config.h.in
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
/* Auto-generated config file atca_config.h */
#ifndef ATCA_CONFIG_H
#define ATCA_CONFIG_H
/* Included HALS */
#cmakedefine ATCA_HAL_KIT_UART
#cmakedefine ATCA_HAL_KIT_HID
#cmakedefine ATCA_HAL_I2C
#cmakedefine ATCA_HAL_SPI
#cmakedefine ATCA_HAL_KIT_BRIDGE
#cmakedefine ATCA_HAL_CUSTOM
#cmakedefine ATCA_HAL_SWI_UART
#cmakedefine ATCA_HAL_1WIRE
/* Included device support */
#cmakedefine ATCA_ATSHA204A_SUPPORT
#cmakedefine ATCA_ATSHA206A_SUPPORT
#cmakedefine ATCA_ATECC108A_SUPPORT
#cmakedefine ATCA_ATECC508A_SUPPORT
#cmakedefine ATCA_ATECC608_SUPPORT
#cmakedefine ATCA_ECC204_SUPPORT
#cmakedefine ATCA_TA010_SUPPORT
#cmakedefine ATCA_SHA104_SUPPORT
#cmakedefine ATCA_SHA105_SUPPORT
/* Linked device support library */
#cmakedefine01 ATCA_TA_SUPPORT
/** Device Override - Library Assumes ATECC608B support in checks */
#cmakedefine ATCA_ATECC608A_SUPPORT
/** Define to enable compatibility with legacy HALs
(HALs with embedded device logic)*/
#cmakedefine ATCA_HAL_LEGACY_API
/** To use dynamically registered HALs without any of the provided
implementations its necessary to specify a value here - using this
in addition to specifying a provide hal may result in compilation
problems - it will need to be the same as the number of the hal options
selected plus however additional slots one would like */
#cmakedefine ATCA_MAX_HAL_CACHE @ATCA_MAX_HAL_CACHE@
/** Define if cryptoauthlib is to use the maximum execution time method */
#cmakedefine ATCA_NO_POLL
/* \brief How long to wait after an initial wake failure for the POST to
* complete.
* If Power-on self test (POST) is enabled, the self test will run on waking
* from sleep or during power-on, which delays the wake reply.
*/
#ifndef ATCA_POST_DELAY_MSEC
#define ATCA_POST_DELAY_MSEC 25
#endif
/***************** Diagnostic & Test Configuration Section *****************/
/** Enable debug messages */
#cmakedefine ATCA_PRINTF
/** Enable preprocessor warning messages */
#cmakedefine01 ATCA_PREPROCESSOR_WARNING
/** Enable jwt functionality */
#cmakedefine ATCA_JWT_EN
/** Enable to build in test hooks */
#cmakedefine ATCA_TESTS_ENABLED
/******************** Features Configuration Section ***********************/
/** Define certificate templates to be supported. */
#cmakedefine ATCA_TNGTLS_SUPPORT
#cmakedefine ATCA_TNGLORA_SUPPORT
#cmakedefine ATCA_TFLEX_SUPPORT
#cmakedefine ATCA_TNG_LEGACY_SUPPORT
/** Define WPC to be supported. */
#cmakedefine ATCA_WPC_SUPPORT
/** Define Software Crypto Library to Use - if none are defined use the
cryptoauthlib version where applicable */
#cmakedefine ATCA_MBEDTLS
#cmakedefine ATCA_OPENSSL
#cmakedefine ATCA_WOLFSSL
#ifdef ATCA_WOLFSSL
#cmakedefine WOLFSSL_USER_SETTINGS
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#endif
#endif
/** Additional Runtime Configuration */
#cmakedefine ATCA_LIBRARY_CONF "@ATCA_LIBRARY_CONF@"
/** Define to build atcab_ functions rather that defining them as macros */
#cmakedefine ATCA_USE_ATCAB_FUNCTIONS
/** Define to enable older API forms that have been replaced */
#cmakedefine ATCA_ENABLE_DEPRECATED
/** Enable Strict ISO/C99 compliance */
#cmakedefine ATCA_STRICT_C99
/** Enable ATCACERT Module */
#cmakedefine01 ATCACERT_EN
/******************** Device Configuration Section *************************/
/** Enable the delete command */
#cmakedefine01 CALIB_DELETE_EN
/******************** Packet Size Configuration Section *************************/
/** Provide Maximum packet size for the command to be sent and received */
#cmakedefine MAX_PACKET_SIZE (@MAX_PACKET_SIZE@U)
/** Enables multipart buffer handling (generally for small memory model platforms) */
#cmakedefine01 MULTIPART_BUF_EN
/******************** Platform Configuration Section ***********************/
/** Define if the library is not to use malloc/free */
#cmakedefine ATCA_NO_HEAP
/** Define platform provided functions */
#cmakedefine ATCA_PLATFORM_MALLOC @ATCA_PLATFORM_MALLOC@
#cmakedefine ATCA_PLATFORM_FREE @ATCA_PLATFORM_FREE@
#cmakedefine ATCA_PLATFORM_STRCASESTR @ATCA_PLATFORM_STRCASESTR@
#cmakedefine ATCA_PLATFORM_MEMSET_S @ATCA_PLATFORM_MEMSET_S@
#define atca_delay_ms hal_delay_ms
#define atca_delay_us hal_delay_us
#endif // ATCA_CONFIG_H