Loading...
Searching...
No Matches
at86rf2xx_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Kaspar Schleiser <kaspar@schleiser.de>
3 * SPDX-FileCopyrightText: 2015 Hauke Petersen <hauke.petersen@fu-berlin.de>
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
18
19#include "at86rf2xx.h"
20#include "board.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#ifndef AT86RF2XX_PARAM_SPI
34#define AT86RF2XX_PARAM_SPI (SPI_DEV(0))
35#endif
36
37#ifndef AT86RF2XX_PARAM_SPI_CLK
41#define AT86RF2XX_PARAM_SPI_CLK (SPI_CLK_5MHZ)
42#endif
43
44#ifndef AT86RF2XX_PARAM_CS
48#define AT86RF2XX_PARAM_CS (GPIO_PIN(0, 0))
49#endif
50
51#ifndef AT86RF2XX_PARAM_INT
55#define AT86RF2XX_PARAM_INT (GPIO_PIN(0, 1))
56#endif
57
58#ifndef AT86RF2XX_PARAM_SLEEP
62#define AT86RF2XX_PARAM_SLEEP (GPIO_PIN(0, 2))
63#endif
64
65#ifndef AT86RF2XX_PARAM_RESET
69#define AT86RF2XX_PARAM_RESET (GPIO_PIN(0, 3))
70#endif
71
72#ifndef AT86RF2XX_PARAMS
76#define AT86RF2XX_PARAMS { .spi = AT86RF2XX_PARAM_SPI, \
77 .spi_clk = AT86RF2XX_PARAM_SPI_CLK, \
78 .cs_pin = AT86RF2XX_PARAM_CS, \
79 .int_pin = AT86RF2XX_PARAM_INT, \
80 .sleep_pin = AT86RF2XX_PARAM_SLEEP, \
81 .reset_pin = AT86RF2XX_PARAM_RESET }
82#endif
84
88#if AT86RF2XX_IS_PERIPH
89static const uint8_t at86rf2xx_params[] =
90{
91 0 /* dummy value */
92};
93#else
98#endif
99
100#ifdef __cplusplus
101}
102#endif
103
Interface definition for AT86RF2xx based drivers.
#define AT86RF2XX_PARAMS
Parameters to initialize the AT86RF2xx driver with.
struct at86rf2xx_params at86rf2xx_params_t
struct holding all params needed for device initialization
struct holding all params needed for device initialization
Definition at86rf2xx.h:267