at86rf215_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 ML!PA Consulting GmbH
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 
9 #pragma once
10 
21 #include "at86rf215.h"
22 #include "board.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
33 #ifndef AT86RF215_PARAM_SPI
34 #define AT86RF215_PARAM_SPI (SPI_DEV(1))
35 #endif
36 #ifndef AT86RF215_PARAM_SPI_CLK
37 #define AT86RF215_PARAM_SPI_CLK (SPI_CLK_5MHZ)
38 #endif
39 #ifndef AT86RF215_PARAM_CS
40 #define AT86RF215_PARAM_CS (GPIO_PIN(2, 14))
41 #endif
42 #ifndef AT86RF215_PARAM_INT
43 #define AT86RF215_PARAM_INT (GPIO_PIN(2, 30))
44 #endif
45 #ifndef AT86RF215_PARAM_RESET
46 #define AT86RF215_PARAM_RESET (GPIO_PIN(3, 10))
47 #endif
48 
49 #ifndef AT86RF215_PARAMS
50 #define AT86RF215_PARAMS { .spi = AT86RF215_PARAM_SPI, \
51  .spi_clk = AT86RF215_PARAM_SPI_CLK, \
52  .cs_pin = AT86RF215_PARAM_CS, \
53  .int_pin = AT86RF215_PARAM_INT, \
54  .reset_pin = AT86RF215_PARAM_RESET }
55 #endif
62 {
63  AT86RF215_PARAMS
64 };
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
Interface definition for AT86RF215 based drivers.
struct holding all params needed for device initialization
Definition: at86rf215.h:329