Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
19
#ifndef AT86RF215_PARAMS_H
20
#define AT86RF215_PARAMS_H
21
22
#include "
at86rf215.h
"
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(1))
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(2, 14))
42
#endif
43
#ifndef AT86RF215_PARAM_INT
44
#define AT86RF215_PARAM_INT (GPIO_PIN(2, 30))
45
#endif
46
#ifndef AT86RF215_PARAM_RESET
47
#define AT86RF215_PARAM_RESET (GPIO_PIN(3, 10))
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
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 */
at86rf215.h
Interface definition for AT86RF215 based drivers.
at86rf215_params
struct holding all params needed for device initialization
Definition
at86rf215.h:330
Generated on Thu Nov 21 2024 09:55:56 by
1.9.8