Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
mrf24j40_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Neo Nenaco <neo@nenaco.de>
3
* Copyright (C) 2017 Koen Zandberg <koen@bergzand.net>
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser
6
* General Public License v2.1. See the file LICENSE in the top level
7
* directory for more details.
8
*/
9
21
#ifndef MRF24J40_PARAMS_H
22
#define MRF24J40_PARAMS_H
23
24
#include "board.h"
25
#include "
mrf24j40.h
"
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
35
#ifndef MRF24J40_PARAM_SPI
36
#define MRF24J40_PARAM_SPI (SPI_DEV(0))
37
#endif
38
#ifndef MRF24J40_PARAM_SPI_CLK
39
#define MRF24J40_PARAM_SPI_CLK (SPI_CLK_5MHZ)
40
#endif
41
#ifndef MRF24J40_PARAM_CS
42
#define MRF24J40_PARAM_CS (GPIO_PIN(0, 0))
43
#endif
44
#ifndef MRF24J40_PARAM_INT
45
#define MRF24J40_PARAM_INT (GPIO_PIN(0, 1))
46
#endif
47
#ifndef MRF24J40_PARAM_RESET
48
#define MRF24J40_PARAM_RESET (GPIO_PIN(0, 3))
49
#endif
50
51
#ifndef MRF24J40_PARAMS
52
#define MRF24J40_PARAMS { .spi = MRF24J40_PARAM_SPI, \
53
.spi_clk = MRF24J40_PARAM_SPI_CLK, \
54
.cs_pin = MRF24J40_PARAM_CS, \
55
.int_pin = MRF24J40_PARAM_INT, \
56
.reset_pin = MRF24J40_PARAM_RESET }
57
#endif
63
static
const
mrf24j40_params_t
mrf24j40_params
[] =
64
{
65
MRF24J40_PARAMS
66
};
67
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
/* MRF24J40_PARAMS_H */
mrf24j40.h
Interface definition for MRF24J40 based drivers .
mrf24j40_params
struct holding all params needed for device initialization
Definition
mrf24j40.h:155
Generated on Thu Nov 21 2024 13:53:01 by
1.9.8