Loading...
Searching...
No Matches
at86rf215_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 ML!PA Consulting GmbH
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "at86rf215.h"
19#include "board.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
30#ifndef AT86RF215_PARAM_SPI
31#define AT86RF215_PARAM_SPI (SPI_DEV(1))
32#endif
33#ifndef AT86RF215_PARAM_SPI_CLK
34#define AT86RF215_PARAM_SPI_CLK (SPI_CLK_5MHZ)
35#endif
36#ifndef AT86RF215_PARAM_CS
37#define AT86RF215_PARAM_CS (GPIO_PIN(2, 14))
38#endif
39#ifndef AT86RF215_PARAM_INT
40#define AT86RF215_PARAM_INT (GPIO_PIN(2, 30))
41#endif
42#ifndef AT86RF215_PARAM_RESET
43#define AT86RF215_PARAM_RESET (GPIO_PIN(3, 10))
44#endif
45
46#ifndef AT86RF215_PARAMS
47#define AT86RF215_PARAMS { .spi = AT86RF215_PARAM_SPI, \
48 .spi_clk = AT86RF215_PARAM_SPI_CLK, \
49 .cs_pin = AT86RF215_PARAM_CS, \
50 .int_pin = AT86RF215_PARAM_INT, \
51 .reset_pin = AT86RF215_PARAM_RESET }
52#endif
54
59{
60 AT86RF215_PARAMS
61};
62
63#ifdef __cplusplus
64}
65#endif
66
Interface definition for AT86RF215 based drivers.
struct at86rf215_params at86rf215_params_t
struct holding all params needed for device initialization
struct holding all params needed for device initialization
Definition at86rf215.h:329