Loading...
Searching...
No Matches
mrf24j40_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Neo Nenaco <neo@nenaco.de>
3 * SPDX-FileCopyrightText: 2017 Koen Zandberg <koen@bergzand.net>
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
19
20#include "board.h"
21#include "mrf24j40.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef MRF24J40_PARAM_SPI
32#define MRF24J40_PARAM_SPI (SPI_DEV(0))
33#endif
34#ifndef MRF24J40_PARAM_SPI_CLK
35#define MRF24J40_PARAM_SPI_CLK (SPI_CLK_5MHZ)
36#endif
37#ifndef MRF24J40_PARAM_CS
38#define MRF24J40_PARAM_CS (GPIO_PIN(0, 0))
39#endif
40#ifndef MRF24J40_PARAM_INT
41#define MRF24J40_PARAM_INT (GPIO_PIN(0, 1))
42#endif
43#ifndef MRF24J40_PARAM_RESET
44#define MRF24J40_PARAM_RESET (GPIO_PIN(0, 3))
45#endif
46
47#ifndef MRF24J40_PARAMS
48#define MRF24J40_PARAMS { .spi = MRF24J40_PARAM_SPI, \
49 .spi_clk = MRF24J40_PARAM_SPI_CLK, \
50 .cs_pin = MRF24J40_PARAM_CS, \
51 .int_pin = MRF24J40_PARAM_INT, \
52 .reset_pin = MRF24J40_PARAM_RESET }
53#endif
55
60{
61 MRF24J40_PARAMS
62};
63
64#ifdef __cplusplus
65}
66#endif
67
struct mrf24j40_params mrf24j40_params_t
struct holding all params needed for device initialization
Interface definition for MRF24J40 based drivers .
struct holding all params needed for device initialization
Definition mrf24j40.h:151