Loading...
Searching...
No Matches
encx24j600_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 HAW Hamburg
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
20
21#include "encx24j600.h"
22#include "board.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#ifndef ENCX24J600_PARAM_SPI
33#define ENCX24J600_PARAM_SPI (SPI_DEV(0))
34#endif
35#ifndef ENCX24J600_PARAM_CS
36#define ENCX24J600_PARAM_CS (GPIO_PIN(0, 0))
37#endif
38#ifndef ENCX24J600_PARAM_INT
39#define ENCX24J600_PARAM_INT (GPIO_PIN(0, 1))
40#endif
41
42#ifndef ENCX24J600_PARAMS
43#define ENCX24J600_PARAMS { .spi = ENCX24J600_PARAM_SPI, \
44 .cs_pin = ENCX24J600_PARAM_CS, \
45 .int_pin = ENCX24J600_PARAM_INT }
46#endif
48
53 ENCX24J600_PARAMS
54};
55
56#ifdef __cplusplus
57}
58#endif
59
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