Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
cc2420_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2016 Freie Universität Berlin
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 CC2420_PARAMS_H
20
#define CC2420_PARAMS_H
21
22
#include "board.h"
23
#include "
cc2420.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
33
#ifndef CC2420_PARAM_SPI
34
#define CC2420_PARAM_SPI (SPI_DEV(0))
35
#endif
36
#ifndef CC2420_PARAM_SPI_CLK
37
#define CC2420_PARAM_SPI_CLK (SPI_CLK_5MHZ)
38
#endif
39
#ifndef CC2420_PARAM_CS
40
#define CC2420_PARAM_CS (GPIO_PIN(0, 0))
41
#endif
42
#ifndef CC2420_PARAM_FIFO
43
#define CC2420_PARAM_FIFO (GPIO_PIN(0, 1))
44
#endif
45
#ifndef CC2420_PARAM_FIFOP
46
#define CC2420_PARAM_FIFOP (GPIO_PIN(0, 2))
47
#endif
48
#ifndef CC2420_PARAM_CCA
49
#define CC2420_PARAM_CCA (GPIO_PIN(0, 3))
50
#endif
51
#ifndef CC2420_PARAM_SFD
52
#define CC2420_PARAM_SFD (GPIO_PIN(0, 3))
53
#endif
54
#ifndef CC2420_PARAM_VREFEN
55
#define CC2420_PARAM_VREFEN (GPIO_PIN(0, 3))
56
#endif
57
#ifndef CC2420_PARAM_RESET
58
#define CC2420_PARAM_RESET (GPIO_PIN(0, 3))
59
#endif
60
61
#ifndef CC2420_PARAMS
62
#define CC2420_PARAMS { .spi = CC2420_PARAM_SPI, \
63
.spi_clk = CC2420_PARAM_SPI_CLK, \
64
.pin_cs = CC2420_PARAM_CS, \
65
.pin_fifo = CC2420_PARAM_FIFO, \
66
.pin_fifop = CC2420_PARAM_FIFOP, \
67
.pin_cca = CC2420_PARAM_CCA, \
68
.pin_sfd = CC2420_PARAM_SFD, \
69
.pin_vrefen = CC2420_PARAM_VREFEN, \
70
.pin_reset = CC2420_PARAM_RESET }
71
#endif
77
static
const
cc2420_params_t
cc2420_params
[] =
78
{
79
CC2420_PARAMS
80
};
81
82
#ifdef __cplusplus
83
}
84
#endif
85
86
#endif
/* CC2420_PARAMS_H */
cc2420.h
Interface definition for the CC2420 driver.
cc2420_params
Struct holding all parameters needed for device initialization.
Definition
cc2420.h:74
Generated on Fri Nov 15 2024 22:46:36 by
1.9.8