Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
kw2xrf_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Hamburg University of Applied Sciences
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 KW2XRF_PARAMS_H
20
#define KW2XRF_PARAMS_H
21
22
#include "board.h"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#ifndef KW2XRF_PARAM_SPI
33
#define KW2XRF_PARAM_SPI (SPI_DEV(0))
34
#endif
35
#ifndef KW2XRF_PARAM_SPI_CLK
36
#define KW2XRF_PARAM_SPI_CLK (SPI_CLK_10MHZ)
37
#endif
38
#ifndef KW2XRF_PARAM_CS
39
#define KW2XRF_PARAM_CS (GPIO_PIN(0, 0))
40
#endif
41
#ifndef KW2XRF_PARAM_INT
42
#define KW2XRF_PARAM_INT (GPIO_PIN(0, 1))
43
#endif
44
#ifndef KW2XRF_PARAM_SLEEP
45
#define KW2XRF_PARAM_SLEEP (GPIO_PIN(0, 2))
46
#endif
47
#ifndef KW2XRF_PARAM_RESET
48
#define KW2XRF_PARAM_RESET (GPIO_PIN(0, 3))
49
#endif
50
51
#ifndef KW2XRF_PARAMS
52
#define KW2XRF_PARAMS { .spi = KW2XRF_PARAM_SPI, \
53
.spi_clk = KW2XRF_PARAM_SPI_CLK, \
54
.cs_pin = KW2XRF_PARAM_CS, \
55
.int_pin = KW2XRF_PARAM_INT }
56
#endif
57
62
static
const
kw2xrf_params_t
kw2xrf_params
[] =
63
{
64
KW2XRF_PARAMS
65
};
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* KW2XRF_PARAMS_H */
72
kw2xrf_params
Struct holding all params needed for device initialization.
Definition:
kw2xrf.h:113
Generated on Tue Nov 24 2020 19:46:51 by
1.8.17