Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
at86rf215_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2019 ML!PA Consulting GmbH
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 AT86RF215_PARAMS_H
21
#define AT86RF215_PARAMS_H
22
23
#include "board.h"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
34
#ifndef AT86RF215_PARAM_SPI
35
#define AT86RF215_PARAM_SPI (SPI_DEV(0))
36
#endif
37
#ifndef AT86RF215_PARAM_SPI_CLK
38
#define AT86RF215_PARAM_SPI_CLK (SPI_CLK_5MHZ)
39
#endif
40
#ifndef AT86RF215_PARAM_CS
41
#define AT86RF215_PARAM_CS (GPIO_PIN(1, 28))
42
#endif
43
#ifndef AT86RF215_PARAM_INT
44
#define AT86RF215_PARAM_INT (GPIO_PIN(1, 7))
45
#endif
46
#ifndef AT86RF215_PARAM_RESET
47
#define AT86RF215_PARAM_RESET (GPIO_PIN(1, 8))
48
#endif
49
50
#ifndef AT86RF215_PARAMS
51
#define AT86RF215_PARAMS { .spi = AT86RF215_PARAM_SPI, \
52
.spi_clk = AT86RF215_PARAM_SPI_CLK, \
53
.cs_pin = AT86RF215_PARAM_CS, \
54
.int_pin = AT86RF215_PARAM_INT, \
55
.reset_pin = AT86RF215_PARAM_RESET }
56
#endif
57
62
static
const
at86rf215_params_t
at86rf215_params
[] =
63
{
64
AT86RF215_PARAMS
65
};
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* AT86RF215_PARAMS_H */
72
at86rf215_params
struct holding all params needed for device initialization
Definition:
at86rf215.h:296
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17