25 #include "cryptoauthlib.h"
29 #ifdef CUSTOM_ATCA_PARAMS
30 #include "custom_atca_params.h"
33 #if IS_USED(MODULE_PSA_SECURE_ELEMENT_ATECCX08A)
57 #ifndef ATCA_PARAM_I2C
58 #define ATCA_PARAM_I2C (I2C_DEV(0))
61 #ifndef ATCA_PARAM_ADDR
62 #define ATCA_PARAM_ADDR (ATCA_I2C_ADDR)
64 #ifndef ATCA_RX_RETRIES
65 #define ATCA_RX_RETRIES (20)
68 #define ATCA_DEVTYPE (ATECC608A)
75 #define ATCA_PARAMS { .iface_type = ATCA_I2C_IFACE, \
76 .devtype = ATCA_DEVTYPE, \
77 .atcai2c.address = ATCA_PARAM_ADDR, \
78 .atcai2c.bus = ATCA_PARAM_I2C, \
81 .rx_retries = ATCA_RX_RETRIES }
86 #if IS_USED(MODULE_PSA_SECURE_ELEMENT_ATECCX08A)
115 #define ATCA_NUMOF (ARRAY_SIZE(atca_params))
Default addresses and device descriptor for CryptoAuth devices.
Type definitions for PSA Crypto.
static const ATCAIfaceCfg atca_params[]
Allocation of ATCA device descriptors.
#define ATCA_PARAMS
Configuration parameters for the primary ATCA device.
ATCADevice atca_devs_ptr[ATCA_NUMOF]
List of device pointers for all available devices.
#define ATCA_NUMOF
Number of connected devices.
Low-level I2C peripheral driver interface definition.
Common macros and compiler attributes/pragmas configuration.
uint32_t psa_key_location_t
Encoding of key location indicators.