Loading...
Searching...
No Matches
at86rf2xx_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
3 * 2015 Hauke Petersen <hauke.petersen@fu-berlin.de>
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
20#ifndef AT86RF2XX_PARAMS_H
21#define AT86RF2XX_PARAMS_H
22
23#include "at86rf2xx.h"
24#include "board.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#ifndef AT86RF2XX_PARAM_SPI
38#define AT86RF2XX_PARAM_SPI (SPI_DEV(0))
39#endif
40
41#ifndef AT86RF2XX_PARAM_SPI_CLK
45#define AT86RF2XX_PARAM_SPI_CLK (SPI_CLK_5MHZ)
46#endif
47
48#ifndef AT86RF2XX_PARAM_CS
52#define AT86RF2XX_PARAM_CS (GPIO_PIN(0, 0))
53#endif
54
55#ifndef AT86RF2XX_PARAM_INT
59#define AT86RF2XX_PARAM_INT (GPIO_PIN(0, 1))
60#endif
61
62#ifndef AT86RF2XX_PARAM_SLEEP
66#define AT86RF2XX_PARAM_SLEEP (GPIO_PIN(0, 2))
67#endif
68
69#ifndef AT86RF2XX_PARAM_RESET
73#define AT86RF2XX_PARAM_RESET (GPIO_PIN(0, 3))
74#endif
75
76#ifndef AT86RF2XX_PARAMS
80#define AT86RF2XX_PARAMS { .spi = AT86RF2XX_PARAM_SPI, \
81 .spi_clk = AT86RF2XX_PARAM_SPI_CLK, \
82 .cs_pin = AT86RF2XX_PARAM_CS, \
83 .int_pin = AT86RF2XX_PARAM_INT, \
84 .sleep_pin = AT86RF2XX_PARAM_SLEEP, \
85 .reset_pin = AT86RF2XX_PARAM_RESET }
86#endif
92#if AT86RF2XX_IS_PERIPH
93static const uint8_t at86rf2xx_params[] =
94{
95 0 /* dummy value */
96};
97#else
102#endif
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif /* AT86RF2XX_PARAMS_H */
Interface definition for AT86RF2xx based drivers.
#define AT86RF2XX_PARAMS
Parameters to initialize the AT86RF2xx driver with.
struct holding all params needed for device initialization
Definition at86rf2xx.h:268