Loading...
Searching...
No Matches
encx24j600_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "encx24j600.h"
19#include "board.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#ifndef ENCX24J600_PARAM_SPI
30#define ENCX24J600_PARAM_SPI (SPI_DEV(0))
31#endif
32#ifndef ENCX24J600_PARAM_CS
33#define ENCX24J600_PARAM_CS (GPIO_PIN(0, 0))
34#endif
35#ifndef ENCX24J600_PARAM_INT
36#define ENCX24J600_PARAM_INT (GPIO_PIN(0, 1))
37#endif
38
39#ifndef ENCX24J600_PARAMS
40#define ENCX24J600_PARAMS { .spi = ENCX24J600_PARAM_SPI, \
41 .cs_pin = ENCX24J600_PARAM_CS, \
42 .int_pin = ENCX24J600_PARAM_INT }
43#endif
45
50 ENCX24J600_PARAMS
51};
52
53#ifdef __cplusplus
54}
55#endif
56
Interface definition for the ENCX24J600 driver.
static const encx24j600_params_t encx24j600_params[]
ENCX24J600 configuration.
Struct containing the needed peripheral configuration.
Definition encx24j600.h:47