Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
atca_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2019 HAW Hamburg
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
20
#ifndef ATCA_PARAMS_H
21
#define ATCA_PARAMS_H
22
23
#include "board.h"
24
#include "cryptoauthlib.h"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
46
#ifndef ATCA_PARAM_I2C
47
#define ATCA_PARAM_I2C I2C_DEV(0)
48
#endif
49
#ifndef ATCA_PARAM_ADDR
50
#define ATCA_PARAM_ADDR (ATCA_I2C_ADDR)
51
#endif
52
#ifndef ATCA_RX_RETRIES
53
#define ATCA_RX_RETRIES (20)
54
#endif
55
#ifndef ATCA_DEVTYPE
56
#define ATCA_DEVTYPE (ATECC508A)
57
#endif
58
59
#ifndef ATCA_PARAMS
60
#define ATCA_PARAMS { .iface_type = ATCA_I2C_IFACE, \
61
.devtype = ATCA_DEVTYPE, \
62
.atcai2c.slave_address = ATCA_PARAM_ADDR, \
63
.atcai2c.bus = ATCA_PARAM_I2C, \
64
.atcai2c.baud = -1, \
65
.wake_delay = 1500, \
66
.rx_retries = ATCA_RX_RETRIES }
67
#endif
68
74
static
const
ATCAIfaceCfg
atca_params
[] =
75
{
76
ATCA_PARAMS
77
};
78
79
#ifdef __cplusplus
80
}
81
#endif
82
83
#endif
/* ATCA_PARAMS_H */
84
atca_params
static const ATCAIfaceCfg atca_params[]
Allocation of ATCA device descriptors.
Definition:
atca_params.h:74
Generated on Tue Nov 24 2020 19:46:51 by
1.8.17