Loading...
Searching...
No Matches
mrf24j40_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Neo Nenaco <neo@nenaco.de>
3 * Copyright (C) 2017 Koen Zandberg <koen@bergzand.net>
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
22
23#include "board.h"
24#include "mrf24j40.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#ifndef MRF24J40_PARAM_SPI
35#define MRF24J40_PARAM_SPI (SPI_DEV(0))
36#endif
37#ifndef MRF24J40_PARAM_SPI_CLK
38#define MRF24J40_PARAM_SPI_CLK (SPI_CLK_5MHZ)
39#endif
40#ifndef MRF24J40_PARAM_CS
41#define MRF24J40_PARAM_CS (GPIO_PIN(0, 0))
42#endif
43#ifndef MRF24J40_PARAM_INT
44#define MRF24J40_PARAM_INT (GPIO_PIN(0, 1))
45#endif
46#ifndef MRF24J40_PARAM_RESET
47#define MRF24J40_PARAM_RESET (GPIO_PIN(0, 3))
48#endif
49
50#ifndef MRF24J40_PARAMS
51#define MRF24J40_PARAMS { .spi = MRF24J40_PARAM_SPI, \
52 .spi_clk = MRF24J40_PARAM_SPI_CLK, \
53 .cs_pin = MRF24J40_PARAM_CS, \
54 .int_pin = MRF24J40_PARAM_INT, \
55 .reset_pin = MRF24J40_PARAM_RESET }
56#endif
58
63{
64 MRF24J40_PARAMS
65};
66
67#ifdef __cplusplus
68}
69#endif
70
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:154