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
10#pragma once
11
21
22#include "at86rf2xx.h"
23#include "board.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef AT86RF2XX_PARAM_SPI
37#define AT86RF2XX_PARAM_SPI (SPI_DEV(0))
38#endif
39
40#ifndef AT86RF2XX_PARAM_SPI_CLK
44#define AT86RF2XX_PARAM_SPI_CLK (SPI_CLK_5MHZ)
45#endif
46
47#ifndef AT86RF2XX_PARAM_CS
51#define AT86RF2XX_PARAM_CS (GPIO_PIN(0, 0))
52#endif
53
54#ifndef AT86RF2XX_PARAM_INT
58#define AT86RF2XX_PARAM_INT (GPIO_PIN(0, 1))
59#endif
60
61#ifndef AT86RF2XX_PARAM_SLEEP
65#define AT86RF2XX_PARAM_SLEEP (GPIO_PIN(0, 2))
66#endif
67
68#ifndef AT86RF2XX_PARAM_RESET
72#define AT86RF2XX_PARAM_RESET (GPIO_PIN(0, 3))
73#endif
74
75#ifndef AT86RF2XX_PARAMS
79#define AT86RF2XX_PARAMS { .spi = AT86RF2XX_PARAM_SPI, \
80 .spi_clk = AT86RF2XX_PARAM_SPI_CLK, \
81 .cs_pin = AT86RF2XX_PARAM_CS, \
82 .int_pin = AT86RF2XX_PARAM_INT, \
83 .sleep_pin = AT86RF2XX_PARAM_SLEEP, \
84 .reset_pin = AT86RF2XX_PARAM_RESET }
85#endif
87
91#if AT86RF2XX_IS_PERIPH
92static const uint8_t at86rf2xx_params[] =
93{
94 0 /* dummy value */
95};
96#else
101#endif
102
103#ifdef __cplusplus
104}
105#endif
106
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